Permalink
Browse files

wo #5451 . fix input arguments to be const

  • Loading branch information...
mcr committed Apr 8, 2017
1 parent a706f08 commit ff9822fbbb0fbb2f1a6a49d7c49a616050c5a915
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/libopenswan/ttodata.c
  2. +1 −1 linux/include/openswan.h
@@ -377,7 +377,7 @@ size_t errlen;
/*
* process a hex-encoded ckaid into a binary representation.
*/
err_t ckaidhex2ckaid(char *key_ckaid_hex, unsigned char ckaid[CKAID_BUFSIZE])
err_t ckaidhex2ckaid(const char *key_ckaid_hex, unsigned char ckaid[CKAID_BUFSIZE])
{
return ttodatav(key_ckaid_hex, 0, 16, (char *)ckaid, sizeof(ckaid), NULL, NULL, 0, TTODATAV_IGNORESPACE);
}
View
@@ -323,7 +323,7 @@ err_t ttoprotoport(char *src, size_t src_len, u_int8_t *proto, u_int16_t *port,
/* used to process ckaid in hex */
#define CKAID_BUFSIZE 20
extern err_t ckaidhex2ckaid(char *key_ckaid_hex, unsigned char ckaid[CKAID_BUFSIZE]);
extern err_t ckaidhex2ckaid(const char *key_ckaid_hex, unsigned char ckaid[CKAID_BUFSIZE]);
/* initializations */

0 comments on commit ff9822f

Please sign in to comment.