OSDN Git Service

convert two more static ints used as flags to smallints
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 22 May 2008 02:22:28 +0000 (02:22 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 22 May 2008 02:22:28 +0000 (02:22 -0000)
libc/inet/netlinkaccess.h
libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c

index 417d83a..f2a3ac0 100644 (file)
@@ -63,7 +63,7 @@ struct netlink_handle
 
 #if 0 /* unused code */
 #if __ASSUME_NETLINK_SUPPORT == 0
-extern int __no_netlink_support attribute_hidden;
+extern smallint __no_netlink_support attribute_hidden;
 #else
 # define __no_netlink_support 0
 #endif
index eace94c..6cd0f09 100644 (file)
@@ -196,7 +196,7 @@ init_mq_netlink (void)
 
       if (err == 0)
        {
-         static int added_atfork;
+         static smallint added_atfork;
 
          if (added_atfork == 0
              && pthread_atfork (NULL, NULL, reset_once) != 0)