Skip to content

Commit

Permalink
wo #5451 . fix input arguments to be const
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr committed Apr 17, 2017
1 parent a706f08 commit ff9822f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libopenswan/ttodata.c
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion linux/include/openswan.h
Expand Up @@ -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 */
Expand Down

0 comments on commit ff9822f

Please sign in to comment.