chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doxygen-clean
[disorder]
/
tests
/
udplog.c
diff --git
a/tests/udplog.c
b/tests/udplog.c
index 0aa8f595c4346e36a1316dd5f9bc2ceb41937943..f8839c85e1f031eb5700c66764865644596b81f2 100644
(file)
--- a/
tests/udplog.c
+++ b/
tests/udplog.c
@@
-18,8
+18,7
@@
* USA
*/
* USA
*/
-#include <config.h>
-#include "types.h"
+#include "common.h"
#include <getopt.h>
#include <sys/types.h>
#include <getopt.h>
#include <sys/types.h>
@@
-81,14
+80,10
@@
int main(int argc, char **argv) {
fd_set fds;
struct timeval tv;
static const struct addrinfo pref = {
fd_set fds;
struct timeval tv;
static const struct addrinfo pref = {
- 0, /* ai_flags */
- AF_UNSPEC, /* ai_family */
- SOCK_DGRAM, /* ai_socktype */
- IPPROTO_UDP, /* ai_protocol */
- 0,
- 0,
- 0,
- 0
+ .ai_flags = 0,
+ .ai_family = AF_UNSPEC,
+ .ai_socktype = SOCK_DGRAM,
+ .ai_protocol = IPPROTO_UDP,
};
set_progname(argv);
};
set_progname(argv);