Mercurial > hg > octave-kai > gnulib-hg
comparison tests/test-netinet_in.c @ 12210:441d8820b5a5
tests: avoid some compiler warnings
Mostly Simon's modules; warnings reported by gcc 4.3.4 on coreutils.
* tests/test-getaddrinfo.c (simple): Mark static, and allow string
literals.
* tests/test-memchr.c (main): Avoid type mismatch.
* tests/test-arpa_inet.c (main): Avoid unused parameters.
* tests/test-base64.c (main): Likewise.
* tests/test-getdelim.c (main): Likewise.
* tests/test-gethostname.c (main): Likewise.
* tests/test-getline.c (main): Likewise.
* tests/test-netinet_in.c (main): Likewise.
* tests/test-select.c (open_server_socket, main): Likewise.
* tests/test-select-stdin.c (main): Likewise.
* tests/test-sockets.c (main): Likewise.
* tests/test-strsignal.c (main): Likewise.
* tests/test-sys_select.c (main): Likewise.
* tests/test-sys_socket.c (main): Likewise.
* tests/test-u64.c (main): Likewise.
* tests/test-xfprintf-posix.c (main): Likewise.
* tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 29 Oct 2009 09:15:06 -0600 |
parents | bbbbbf4cd1c5 |
children | c2cbabec01dd |
comparison
equal
deleted
inserted
replaced
12209:31e5813d01e1 | 12210:441d8820b5a5 |
---|---|
1 /* Test of <netinet/in.h> substitute. | 1 /* Test of <netinet/in.h> substitute. |
2 Copyright (C) 2007 Free Software Foundation, Inc. | 2 Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
3 | 3 |
4 This program is free software: you can redistribute it and/or modify | 4 This program is free software: you can redistribute it and/or modify |
5 it under the terms of the GNU General Public License as published by | 5 it under the terms of the GNU General Public License as published by |
6 the Free Software Foundation; either version 3 of the License, or | 6 the Free Software Foundation; either version 3 of the License, or |
7 (at your option) any later version. | 7 (at your option) any later version. |
19 #include <config.h> | 19 #include <config.h> |
20 | 20 |
21 #include <netinet/in.h> | 21 #include <netinet/in.h> |
22 | 22 |
23 int | 23 int |
24 main () | 24 main (void) |
25 { | 25 { |
26 return 0; | 26 return 0; |
27 } | 27 } |