From fc7cee38b29d3d0345be983c933986e9f127ca6c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 7 Jun 2015 00:34:37 +0200 Subject: ax25/access.c: Fix signedness compiler warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ax25/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25') 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); -- cgit v1.2.3