changeset 12239:5f5176d05a2c

test-sys_socket: Fix compilation warning.
author Simon Josefsson <simon@josefsson.org>
date Thu, 05 Nov 2009 13:54:32 +0100
parents 66104f836834
children 04732481adba
files ChangeLog tests/test-sys_socket.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Nov 05 11:46:16 2009 +0100
+++ b/ChangeLog	Thu Nov 05 13:54:32 2009 +0100
@@ -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.
--- a/tests/test-sys_socket.c	Thu Nov 05 11:46:16 2009 +0100
+++ b/tests/test-sys_socket.c	Thu Nov 05 13:54:32 2009 +0100
@@ -47,7 +47,7 @@
     }
 
   x.ss_family = 42;
-  i = 4711;
+  i = 42;
 
   return 0;
 }