test-sys_socket: Fix compilation warning.
authorSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 12:54:32 +0000 (13:54 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 12:54:32 +0000 (13:54 +0100)
ChangeLog
tests/test-sys_socket.c

index 467299fd2fcae71e0016ac5deb91583838d45e27..c9b6b12e2137051902a408c95862deb75cb66a68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
+       may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
+
 2009-11-05  Bruno Haible  <bruno@clisp.org>
 
        Fix link error.
index ddb491b312df757340e87496000783fb12c0a278..606708dc1a5bdf49f71bb22c82c42313ec87cb9f 100644 (file)
@@ -47,7 +47,7 @@ main (void)
     }
 
   x.ss_family = 42;
-  i = 4711;
+  i = 42;
 
   return 0;
 }