From e65a6679f07124fc2ab8b00c68a8ea4d1c628fb5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 26 Oct 2004 18:11:31 +0000 Subject: * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t type instead of uint16_t. Formatting. --- sysdeps/gnu/netinet/udp.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/gnu/netinet/udp.h b/sysdeps/gnu/netinet/udp.h index 8977712822..45b69f7499 100644 --- a/sysdeps/gnu/netinet/udp.h +++ b/sysdeps/gnu/netinet/udp.h @@ -54,21 +54,23 @@ /* UDP header as specified by RFC 768, August 1980. */ #ifdef __FAVOR_BSD + struct udphdr { - uint16_t uh_sport; /* source port */ - uint16_t uh_dport; /* destination port */ - uint16_t uh_ulen; /* udp length */ - uint16_t uh_sum; /* udp checksum */ + 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 */ }; + #else struct udphdr { - uint16_t source; - uint16_t dest; - uint16_t len; - uint16_t check; + u_int16_t source; + u_int16_t dest; + u_int16_t len; + u_int16_t check; }; #endif -- cgit 1.4.1