diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-12-07 01:28:31 +0900 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-12-07 01:29:21 +0900 |
commit | 2d14cdf412c753b9cf778f1c80bf116651e15816 (patch) | |
tree | 457e90f19b6e6f42757ac96d86e8e982026d61aa /ninfod | |
parent | 0139462b1775a37b2dc38ebe1b415d34ef25226e (diff) | |
download | iputils-2d14cdf412c753b9cf778f1c80bf116651e15816.tar.gz |
ninfod: Use unsigned int for digest.
Fixes following warning:
| ninfod_name.c: In function 'nodeinfo_group':
| ninfod_name.c:270:2: warning: pointer targets in passing argument 1 of 'MD5_Final' differ in signedness [-Wpointer-sign]
| /usr/include/openssl/md5.h:113:5: note: expected 'unsigned char *' but argument is of type 'char *'
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'ninfod')
-rw-r--r-- | ninfod/ninfod_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ninfod/ninfod_name.c b/ninfod/ninfod_name.c index c6e7c4a..967d7f7 100644 --- a/ninfod/ninfod_name.c +++ b/ninfod/ninfod_name.c @@ -260,7 +260,7 @@ static int nodeinfo_group(const char *dnsname, int namelen, struct in6_addr *nigroup) { MD5_CTX ctxt; - char digest[16]; + unsigned char digest[16]; if (!dnsname || !nigroup) return -1; |