diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
commit | 5746309cb4be2073d550ad7a6885e918631dbc38 (patch) | |
tree | 89455bc4aadf977816b38df13f990372cd81d71a /src/nat/test_nat_mini.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/nat/test_nat_mini.c')
-rw-r--r-- | src/nat/test_nat_mini.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/nat/test_nat_mini.c b/src/nat/test_nat_mini.c index 8f689d6bc..4aac3d17f 100644 --- a/src/nat/test_nat_mini.c +++ b/src/nat/test_nat_mini.c | |||
@@ -46,13 +46,13 @@ | |||
46 | * believes to be valid for the transport. | 46 | * believes to be valid for the transport. |
47 | */ | 47 | */ |
48 | static void | 48 | static void |
49 | addr_callback (void *cls, int add_remove, | 49 | addr_callback (void *cls, int add_remove, const struct sockaddr *addr, |
50 | const struct sockaddr *addr, socklen_t addrlen) | 50 | socklen_t addrlen) |
51 | { | 51 | { |
52 | fprintf (stderr, | 52 | fprintf (stderr, "Address changed: %s `%s' (%u bytes)\n", |
53 | "Address changed: %s `%s' (%u bytes)\n", | 53 | add_remove == GNUNET_YES ? "added" : "removed", GNUNET_a2s (addr, |
54 | add_remove == GNUNET_YES ? "added" : "removed", | 54 | addrlen), |
55 | GNUNET_a2s (addr, addrlen), (unsigned int) addrlen); | 55 | (unsigned int) addrlen); |
56 | } | 56 | } |
57 | 57 | ||
58 | 58 | ||
@@ -74,9 +74,8 @@ stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
74 | * Main function run with scheduler. | 74 | * Main function run with scheduler. |
75 | */ | 75 | */ |
76 | static void | 76 | static void |
77 | run (void *cls, | 77 | run (void *cls, char *const *args, const char *cfgfile, |
78 | char *const *args, | 78 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
79 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
80 | { | 79 | { |
81 | struct GNUNET_NAT_MiniHandle *mini; | 80 | struct GNUNET_NAT_MiniHandle *mini; |
82 | 81 | ||