summaryrefslogtreecommitdiff
path: root/lib/libc/net/rthdr.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-27 10:14:03 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-27 10:14:03 +0000
commit8a09d59a7250c0c59dbe3620ded67110c48b556a (patch)
tree4edccc9e47e18111a34ef9b1edf5d3268d08d032 /lib/libc/net/rthdr.c
parent1c721a73ef08637f36f035a2aecfee40a0d958e5 (diff)
%d -> %u. mostly in #ifdef DEBUG.
Diffstat (limited to 'lib/libc/net/rthdr.c')
-rw-r--r--lib/libc/net/rthdr.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/net/rthdr.c b/lib/libc/net/rthdr.c
index 5cd485889bd..7a87b322d10 100644
--- a/lib/libc/net/rthdr.c
+++ b/lib/libc/net/rthdr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthdr.c,v 1.2 2000/02/29 18:25:52 itojun Exp $ */
+/* $OpenBSD: rthdr.c,v 1.3 2002/06/27 10:14:02 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -100,7 +100,7 @@ inet6_rthdr_add(cmsg, addr, flags)
struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr;
if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) {
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_add: unsupported flag(%d)\n", flags);
+ fprintf(stderr, "inet6_rthdr_add: unsupported flag(%u)\n", flags);
#endif
return(-1);
}
@@ -125,7 +125,7 @@ inet6_rthdr_add(cmsg, addr, flags)
}
default:
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_add: unknown type(%d)\n",
+ fprintf(stderr, "inet6_rthdr_add: unknown type(%u)\n",
rthdr->ip6r_type);
#endif
return(-1);
@@ -149,7 +149,7 @@ inet6_rthdr_lasthop(cmsg, flags)
struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr;
if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) {
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_lasthop: unsupported flag(%d)\n", flags);
+ fprintf(stderr, "inet6_rthdr_lasthop: unsupported flag(%u)\n", flags);
#endif
return(-1);
}
@@ -169,7 +169,7 @@ inet6_rthdr_lasthop(cmsg, flags)
}
default:
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_lasthop: unknown type(%d)\n",
+ fprintf(stderr, "inet6_rthdr_lasthop: unknown type(%u)\n",
rthdr->ip6r_type);
#endif
return(-1);
@@ -206,7 +206,7 @@ inet6_rthdr_segments(cmsg)
if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) {
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_segments: invalid size(%d)\n",
+ fprintf(stderr, "inet6_rthdr_segments: invalid size(%u)\n",
rt0->ip6r0_len);
#endif
return -1;
@@ -217,7 +217,7 @@ inet6_rthdr_segments(cmsg)
default:
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_segments: unknown type(%d)\n",
+ fprintf(stderr, "inet6_rthdr_segments: unknown type(%u)\n",
rthdr->ip6r_type);
#endif
return -1;
@@ -241,7 +241,7 @@ inet6_rthdr_getaddr(cmsg, index)
if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) {
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_getaddr: invalid size(%d)\n",
+ fprintf(stderr, "inet6_rthdr_getaddr: invalid size(%u)\n",
rt0->ip6r0_len);
#endif
return NULL;
@@ -258,7 +258,7 @@ inet6_rthdr_getaddr(cmsg, index)
default:
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_getaddr: unknown type(%d)\n",
+ fprintf(stderr, "inet6_rthdr_getaddr: unknown type(%u)\n",
rthdr->ip6r_type);
#endif
return NULL;
@@ -282,7 +282,7 @@ inet6_rthdr_getflags(cmsg, index)
if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) {
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_getflags: invalid size(%d)\n",
+ fprintf(stderr, "inet6_rthdr_getflags: invalid size(%u)\n",
rt0->ip6r0_len);
#endif
return -1;
@@ -302,7 +302,7 @@ inet6_rthdr_getflags(cmsg, index)
default:
#ifdef DEBUG
- fprintf(stderr, "inet6_rthdr_getflags: unknown type(%d)\n",
+ fprintf(stderr, "inet6_rthdr_getflags: unknown type(%u)\n",
rthdr->ip6r_type);
#endif
return -1;