diff options
author | kan <kan@FreeBSD.org> | 2006-09-21 01:48:47 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2006-09-21 01:48:47 +0000 |
commit | 8c74632d44dc29a42301e992df2819275d38337f (patch) | |
tree | 8eb55312d48792d94412b3cef769a159e38067ba /usr.sbin | |
parent | aa92e52181cdd3681561226d5f939a769107a700 (diff) | |
download | FreeBSD-src-8c74632d44dc29a42301e992df2819275d38337f.zip FreeBSD-src-8c74632d44dc29a42301e992df2819275d38337f.tar.gz |
Silence GCC4 signed/unsigned pointer mismatch warning.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ndiscvt/ndiscvt.c | 2 | ||||
-rw-r--r-- | usr.sbin/ngctl/msg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ndiscvt/ndiscvt.c b/usr.sbin/ndiscvt/ndiscvt.c index 80eae83..733af8a 100644 --- a/usr.sbin/ndiscvt/ndiscvt.c +++ b/usr.sbin/ndiscvt/ndiscvt.c @@ -377,7 +377,7 @@ main(int argc, char *argv[]) if (bin) { sysfile = strdup(basename(sysfile)); - ptr = sysfile; + ptr = (unsigned char *)sysfile; while (*ptr) { if (*ptr == '.') *ptr = '_'; diff --git a/usr.sbin/ngctl/msg.c b/usr.sbin/ngctl/msg.c index c332879..f74efde 100644 --- a/usr.sbin/ngctl/msg.c +++ b/usr.sbin/ngctl/msg.c @@ -143,7 +143,7 @@ MsgRead() if (m->header.arglen == 0) printf("No arguments\n"); else - DumpAscii(m->data, m->header.arglen); + DumpAscii((const u_char *)m->data, m->header.arglen); free(m); return; } |