aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-10-26 18:11:31 +0000
committerRoland McGrath <roland@gnu.org>2004-10-26 18:11:31 +0000
commite65a6679f07124fc2ab8b00c68a8ea4d1c628fb5 (patch)
tree7e41fea592b5b56d681d59dd918d67dc6fe1dbf2
parente8210ece6e1f5e9e8fc779192bd7c0a108395d86 (diff)
downloadglibc-e65a6679f07124fc2ab8b00c68a8ea4d1c628fb5.tar
glibc-e65a6679f07124fc2ab8b00c68a8ea4d1c628fb5.tar.gz
glibc-e65a6679f07124fc2ab8b00c68a8ea4d1c628fb5.tar.bz2
glibc-e65a6679f07124fc2ab8b00c68a8ea4d1c628fb5.zip
* sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
type instead of uint16_t. Formatting.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/gnu/netinet/udp.h18
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index f17c818c75..67df0af51c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-26 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
+ type instead of uint16_t. Formatting.
+
2004-10-25 Roland McGrath <roland@redhat.com>
* login/openpty.c (openpty): Add libutil_hidden_def.
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