commit-inetutils
[Top][All Lists]
Advanced

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

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-3-g868a9dd


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-3-g868a9dd
Date: Sat, 07 Jan 2012 12:46:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  868a9dda5081c1ce46a03b8b4af5fefecfaa64f6 (commit)
      from  a78b65595fefb959d0456529422deb42a2db2b8e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=868a9dda5081c1ce46a03b8b4af5fefecfaa64f6


commit 868a9dda5081c1ce46a03b8b4af5fefecfaa64f6
Author: Mats Erik Andersson <address@hidden>
Date:   Sat Jan 7 13:43:39 2012 +0100

    ifconfig: Portability fix.

diff --git a/ChangeLog b/ChangeLog
index cdbd4c1..51a35b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-07  Guillem Jover  <address@hidden>
+
+       * ifconfig/flags.c (flag_char_tab): Protect for full portability
+       every macro invokation IFF_* by a precompiler conditional.
+
 2012-01-07  Mats Erik Andersson <address@hidden>
 
        * telnet/utilities.c (SetNetTrace): Filename buffer overrun: replace
diff --git a/ifconfig/flags.c b/ifconfig/flags.c
index 230ccb0..6dcd3cc 100644
--- a/ifconfig/flags.c
+++ b/ifconfig/flags.c
@@ -389,20 +389,36 @@ struct if_flag_char
    That's the way netstat does it.
 */
 static struct if_flag_char flag_char_tab[] = {
+#ifdef IFF_ALLMULTI
   { IFF_ALLMULTI,    'A' },
+#endif
+#ifdef IFF_BROADCAST
   { IFF_BROADCAST,   'B' },
+#endif
+#ifdef IFF_DEBUG
   { IFF_DEBUG,       'D' },
+#endif
+#ifdef IFF_LOOPBACK
   { IFF_LOOPBACK,    'L' },
+#endif
+#ifdef IFF_MULTICAST
   { IFF_MULTICAST,   'M' },
+#endif
 #ifdef HAVE_DYNAMIC
   { IFF_DYNAMIC,     'd' },
 #endif
+#ifdef IFF_PROMISC
   { IFF_PROMISC,     'P' },
+#endif
 #ifdef IFF_NOTRAILERS
   { IFF_NOTRAILERS,  'N' },
 #endif
+#ifdef IFF_NOARP
   { IFF_NOARP,       'O' },
+#endif
+#ifdef IFF_POINTOPOINT
   { IFF_POINTOPOINT, 'P' },
+#endif
 #ifdef IFF_SLAVE
   { IFF_SLAVE,       's' },
 #endif
@@ -412,8 +428,12 @@ static struct if_flag_char flag_char_tab[] = {
 #ifdef IFF_SIMPLEX
   { IFF_SIMPLEX,     'S' },
 #endif
+#ifdef IFF_RUNNING
   { IFF_RUNNING,     'R' },
+#endif
+#ifdef IFF_UP
   { IFF_UP,          'U' },
+#endif
   { 0 }
 };
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    5 +++++
 ifconfig/flags.c |   20 ++++++++++++++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]