Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet u_intN -> uintN



details:   https://anonhg.NetBSD.org/src/rev/ac6a7b1e8f46
branches:  trunk
changeset: 772548:ac6a7b1e8f46
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 07 20:20:12 2012 +0000

description:
u_intN -> uintN
make standalone

diffstat:

 sys/netinet/udp.h |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r c00ac6b4ad57 -r ac6a7b1e8f46 sys/netinet/udp.h
--- a/sys/netinet/udp.h Sat Jan 07 20:12:07 2012 +0000
+++ b/sys/netinet/udp.h Sat Jan 07 20:20:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp.h,v 1.14 2011/09/24 17:18:17 christos Exp $        */
+/*     $NetBSD: udp.h,v 1.15 2012/01/07 20:20:12 christos Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -34,15 +34,16 @@
 #ifndef _NETINET_UDP_H_
 #define _NETINET_UDP_H_
 
+#include <sys/types.h>
 /*
  * Udp protocol header.
  * Per RFC 768, September, 1981.
  */
 struct udphdr {
-       u_int16_t uh_sport;             /* source port */
-       u_int16_t uh_dport;             /* destination port */
-       u_int16_t uh_ulen;              /* udp length */
-       u_int16_t uh_sum;               /* udp checksum */
+       uint16_t uh_sport;              /* source port */
+       uint16_t uh_dport;              /* destination port */
+       uint16_t uh_ulen;               /* udp length */
+       uint16_t uh_sum;                /* udp checksum */
 } __packed;
 
 /* socket options for UDP */



Home | Main Index | Thread Index | Old Index