public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix bits/socket.h
@ 2004-11-20  0:15 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2004-11-20  0:15 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

gcc -std=c89 -pedantic-errors doesn't like extra comma after SCM_RIGHTS.
Fixed thusly.

2004-11-20  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/bits/socket.h (SCM_RIGHTS): Avoid
	comma at the end of enum if __USE_BSD is not defined.

--- libc/sysdeps/unix/sysv/linux/bits/socket.h.jj	2004-09-14 00:33:04.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/bits/socket.h	2004-11-20 01:10:12.765310641 +0100
@@ -283,10 +283,10 @@ __NTH (__cmsg_nxthdr (struct msghdr *__m
    <linux/socket.h>.  */
 enum
   {
-    SCM_RIGHTS = 0x01,		/* Transfer file descriptors.  */
+    SCM_RIGHTS = 0x01		/* Transfer file descriptors.  */
 #define SCM_RIGHTS SCM_RIGHTS
 #ifdef __USE_BSD
-    SCM_CREDENTIALS = 0x02	/* Credentials passing.  */
+    , SCM_CREDENTIALS = 0x02	/* Credentials passing.  */
 # define SCM_CREDENTIALS SCM_CREDENTIALS
 #endif
   };

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-20  0:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-20  0:15 [PATCH] Fix bits/socket.h Jakub Jelinek

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