diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/nat | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/nat.c | 11 | ||||
-rw-r--r-- | src/nat/nat_mini.c | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 6069d40ad..a037e3b20 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -361,7 +361,8 @@ struct GNUNET_NAT_Handle | |||
361 | * | 361 | * |
362 | * @param h handle to NAT | 362 | * @param h handle to NAT |
363 | */ | 363 | */ |
364 | static void start_gnunet_nat_server (struct GNUNET_NAT_Handle *h); | 364 | static void |
365 | start_gnunet_nat_server (struct GNUNET_NAT_Handle *h); | ||
365 | 366 | ||
366 | 367 | ||
367 | /** | 368 | /** |
@@ -548,8 +549,8 @@ add_ip_to_address_list (struct GNUNET_NAT_Handle *h, | |||
548 | * @param cls the NAT handle | 549 | * @param cls the NAT handle |
549 | * @param tc scheduler context | 550 | * @param tc scheduler context |
550 | */ | 551 | */ |
551 | static void resolve_dns (void *cls, | 552 | static void |
552 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 553 | resolve_dns (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
553 | 554 | ||
554 | 555 | ||
555 | /** | 556 | /** |
@@ -585,8 +586,8 @@ process_external_ip (void *cls, const struct sockaddr *addr, socklen_t addrlen) | |||
585 | * @param cls the NAT handle | 586 | * @param cls the NAT handle |
586 | * @param tc scheduler context | 587 | * @param tc scheduler context |
587 | */ | 588 | */ |
588 | static void resolve_hostname (void *cls, | 589 | static void |
589 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 590 | resolve_hostname (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
590 | 591 | ||
591 | 592 | ||
592 | /** | 593 | /** |
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index e88c9ca55..1f5a83d2d 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c | |||
@@ -279,8 +279,8 @@ struct GNUNET_NAT_MiniHandle | |||
279 | * @param cls the 'struct GNUNET_NAT_MiniHandle' | 279 | * @param cls the 'struct GNUNET_NAT_MiniHandle' |
280 | * @param tc scheduler context | 280 | * @param tc scheduler context |
281 | */ | 281 | */ |
282 | static void do_refresh (void *cls, | 282 | static void |
283 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 283 | do_refresh (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
284 | 284 | ||
285 | 285 | ||
286 | /** | 286 | /** |
@@ -289,7 +289,8 @@ static void do_refresh (void *cls, | |||
289 | * @param cls the 'struct GNUNET_NAT_MiniHandle' | 289 | * @param cls the 'struct GNUNET_NAT_MiniHandle' |
290 | * @param line line of output, NULL at the end | 290 | * @param line line of output, NULL at the end |
291 | */ | 291 | */ |
292 | static void process_map_output (void *cls, const char *line); | 292 | static void |
293 | process_map_output (void *cls, const char *line); | ||
293 | 294 | ||
294 | 295 | ||
295 | /** | 296 | /** |
@@ -376,8 +377,7 @@ process_refresh_output (void *cls, const char *line) | |||
376 | return; /* skip */ | 377 | return; /* skip */ |
377 | if (1 != | 378 | if (1 != |
378 | sscanf (line, | 379 | sscanf (line, |
379 | (mini-> | 380 | (mini->is_tcp) ? "%*u TCP %u->%*s:%*u %*s" : |
380 | is_tcp) ? "%*u TCP %u->%*s:%*u %*s" : | ||
381 | "%*u UDP %u->%*s:%*u %*s", &nport)) | 381 | "%*u UDP %u->%*s:%*u %*s", &nport)) |
382 | return; /* skip */ | 382 | return; /* skip */ |
383 | mini->found = GNUNET_YES; | 383 | mini->found = GNUNET_YES; |