瀏覽代碼

convert two more static ints used as flags to smallints

Denis Vlasenko 17 年之前
父節點
當前提交
e7d80fac04
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      libc/inet/netlinkaccess.h
  2. 1 1
      libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c

+ 1 - 1
libc/inet/netlinkaccess.h

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

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c

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