summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 00:34:37 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 00:34:37 +0200
commitfc7cee38b29d3d0345be983c933986e9f127ca6c (patch)
treec72284a9dda85a515ef659b8c3d19f2829a45ec5 /ax25
parentba5597a1a52a2d33504c06d183b3019809dd8239 (diff)
ax25/access.c: Fix signedness compiler warnings.
cc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o access.c access.c: In function ‘calc_md5_pw’: access.c:194:23: warning: pointer targets in passing argument 2 of ‘MD5Update’ differ in signedness [-Wpointer-sign] MD5Update(&context, buffer+i, n); ^ In file included from access.c:13:0: md5.h:60:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’ void MD5Update(MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ax25/access.c b/ax25/access.c
index 5a588db..c772ae1 100644
--- a/ax25/access.c
+++ b/ax25/access.c
@@ -191,7 +191,7 @@ void calc_md5_pw (const char *MD5prompt, const char *MD5pw, char *MD5result)
len = strlen(buffer);
for (i= 0; i < len; i += 16) {
n = (len - i) > 16 ? 16 : (len - i);
- MD5Update(&context, buffer+i, n);
+ MD5Update(&context, (unsigned char *) buffer+i, n);
}
MD5Final(&context);