public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix <netinet/udp.h>
@ 2004-10-26 18:09 Jakub Jelinek
  2004-10-26 18:11 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-10-26 18:09 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

<sys/types.h> that <netinet/udp.h> includes only defines u_int16_t,
not uint16_t (which is in stdint.h only).

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.

--- libc/sysdeps/gnu/netinet/udp.h.jj	2004-08-30 12:03:35.000000000 +0200
+++ libc/sysdeps/gnu/netinet/udp.h	2004-10-26 19:53:25.561108920 +0200
@@ -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
 

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix <netinet/udp.h>
  2004-10-26 18:09 [PATCH] Fix <netinet/udp.h> Jakub Jelinek
@ 2004-10-26 18:11 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2004-10-26 18:11 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> 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.

Applied.


Thanks,
Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-26 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 18:09 [PATCH] Fix <netinet/udp.h> Jakub Jelinek
2004-10-26 18:11 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).