diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 1999-12-10 12:34:46 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 1999-12-10 12:34:46 +0000 |
commit | 913ba73b82f082b76a85718e032462e0a6fba568 (patch) | |
tree | e28716c8e03dad097067f145ef733012d34c5503 | |
parent | b1de991716d039ca048634ed98acfa77c8f67340 (diff) |
use proper type for in6_first_ifid (char -> u_int8_t)
suggested by: deraadt
-rw-r--r-- | sys/netinet6/in6_ifattach.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c index fce5c9a8aad..457e5ca197a 100644 --- a/sys/netinet6/in6_ifattach.c +++ b/sys/netinet6/in6_ifattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_ifattach.c,v 1.2 1999/12/10 10:04:27 angelos Exp $ */ +/* $OpenBSD: in6_ifattach.c,v 1.3 1999/12/10 12:34:45 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ unsigned long in6_maxmtu = 0; int found_first_ifid = 0; #define IFID_LEN 8 -static char first_ifid[IFID_LEN]; +static u_int8_t first_ifid[IFID_LEN]; static int laddr_to_eui64 __P((u_int8_t *, u_int8_t *, size_t)); static int gen_rand_eui64 __P((u_int8_t *)); @@ -205,10 +205,10 @@ found: printf("%s: supplying EUI64: " "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", if_name(ifp), - first_ifid[0] & 0xff, first_ifid[1] & 0xff, - first_ifid[2] & 0xff, first_ifid[3] & 0xff, - first_ifid[4] & 0xff, first_ifid[5] & 0xff, - first_ifid[6] & 0xff, first_ifid[7] & 0xff); + first_ifid[0], first_ifid[1], + first_ifid[2], first_ifid[3], + first_ifid[4], first_ifid[5], + first_ifid[6], first_ifid[7]); /* invert u bit to convert EUI64 to RFC2373 interface ID. */ first_ifid[0] ^= 0x02; @@ -250,10 +250,10 @@ in6_ifattach(ifp, type, laddr, noloop) printf("%s: using random value as EUI64: " "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", if_name(ifp), - first_ifid[0] & 0xff, first_ifid[1] & 0xff, - first_ifid[2] & 0xff, first_ifid[3] & 0xff, - first_ifid[4] & 0xff, first_ifid[5] & 0xff, - first_ifid[6] & 0xff, first_ifid[7] & 0xff); + first_ifid[0], first_ifid[1], + first_ifid[2], first_ifid[3], + first_ifid[4], first_ifid[5], + first_ifid[6], first_ifid[7]); /* * invert u bit to convert EUI64 to RFC2373 interface * ID. |