summaryrefslogtreecommitdiffhomepage
path: root/svr-authpubkey.c
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@gmail.com>2015-05-02 15:59:06 +0200
committerGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:39:13 +0200
commit224b16b2470ab764e854eb4a7cdd568353655afc (patch)
treeeba9e3ed33fd1c66c6286abaf3f3e383f2eb8504 /svr-authpubkey.c
parentef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff)
Fix pointer differ in signess warnings [-Werror=pointer-sign]
Diffstat (limited to 'svr-authpubkey.c')
-rw-r--r--svr-authpubkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-authpubkey.c b/svr-authpubkey.c
index e8af319..82769eb 100644
--- a/svr-authpubkey.c
+++ b/svr-authpubkey.c
@@ -260,9 +260,9 @@ static int checkpubkey(unsigned char* algo, unsigned int algolen,
/* check the key type - will fail if there are options */
TRACE(("a line!"))
- if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {
+ if (strncmp((const char *) buf_getptr(line, algolen), algo, algolen) != 0) {
int is_comment = 0;
- char *options_start = NULL;
+ unsigned char *options_start = NULL;
int options_len = 0;
int escape, quoted;
@@ -308,7 +308,7 @@ static int checkpubkey(unsigned char* algo, unsigned int algolen,
if (line->pos + algolen+3 > line->len) {
continue;
}
- if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {
+ if (strncmp((const char *) buf_getptr(line, algolen), algo, algolen) != 0) {
continue;
}
}