Mercurial > dropbear
comparison svr-authpubkeyoptions.c @ 1094:c45d65392c1a
Fix pointer differ in signess warnings [-Werror=pointer-sign]
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 15:59:06 +0200 |
parents | 405418f7dc5e |
children | 5709b15a1b57 |
comparison
equal
deleted
inserted
replaced
1093:aae71c5f7d5b | 1094:c45d65392c1a |
---|---|
118 static int match_option(buffer *options_buf, const char *opt_name) { | 118 static int match_option(buffer *options_buf, const char *opt_name) { |
119 const unsigned int len = strlen(opt_name); | 119 const unsigned int len = strlen(opt_name); |
120 if (options_buf->len - options_buf->pos < len) { | 120 if (options_buf->len - options_buf->pos < len) { |
121 return DROPBEAR_FAILURE; | 121 return DROPBEAR_FAILURE; |
122 } | 122 } |
123 if (strncasecmp(buf_getptr(options_buf, len), opt_name, len) == 0) { | 123 if (strncasecmp((const char *) buf_getptr(options_buf, len), opt_name, len) == 0) { |
124 buf_incrpos(options_buf, len); | 124 buf_incrpos(options_buf, len); |
125 return DROPBEAR_SUCCESS; | 125 return DROPBEAR_SUCCESS; |
126 } | 126 } |
127 return DROPBEAR_FAILURE; | 127 return DROPBEAR_FAILURE; |
128 } | 128 } |