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/transport/test_plugin_transport_wlan_dummy.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/transport/test_plugin_transport_wlan_dummy.c')
-rw-r--r-- | src/transport/test_plugin_transport_wlan_dummy.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/test_plugin_transport_wlan_dummy.c b/src/transport/test_plugin_transport_wlan_dummy.c index eba4f9dbd..03dedbe4d 100644 --- a/src/transport/test_plugin_transport_wlan_dummy.c +++ b/src/transport/test_plugin_transport_wlan_dummy.c | |||
@@ -72,8 +72,9 @@ stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
72 | char *to_radiotap; | 72 | char *to_radiotap; |
73 | char *to_start; | 73 | char *to_start; |
74 | 74 | ||
75 | sendsize = ntohs (hdr->size) - sizeof (struct Radiotap_Send) | 75 | sendsize = |
76 | + sizeof (struct Radiotap_rx); | 76 | ntohs (hdr->size) - sizeof (struct Radiotap_Send) + |
77 | sizeof (struct Radiotap_rx); | ||
77 | 78 | ||
78 | if (GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs (hdr->type)) | 79 | if (GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs (hdr->type)) |
79 | { | 80 | { |
@@ -335,9 +336,9 @@ testmode (int argc, char *argv[]) | |||
335 | 336 | ||
336 | if (FD_ISSET (STDOUT_FILENO, &wfds)) | 337 | if (FD_ISSET (STDOUT_FILENO, &wfds)) |
337 | { | 338 | { |
338 | ret = write (STDOUT_FILENO, | 339 | ret = |
339 | write_std.buf + write_std.pos, | 340 | write (STDOUT_FILENO, write_std.buf + write_std.pos, |
340 | write_std.size - write_std.pos); | 341 | write_std.size - write_std.pos); |
341 | if (0 > ret) | 342 | if (0 > ret) |
342 | { | 343 | { |
343 | closeprog = 1; | 344 | closeprog = 1; |
@@ -358,9 +359,9 @@ testmode (int argc, char *argv[]) | |||
358 | 359 | ||
359 | if (FD_ISSET (fdpout, &wfds)) | 360 | if (FD_ISSET (fdpout, &wfds)) |
360 | { | 361 | { |
361 | ret = write (fdpout, | 362 | ret = |
362 | write_pout.buf + write_pout.pos, | 363 | write (fdpout, write_pout.buf + write_pout.pos, |
363 | write_pout.size - write_pout.pos); | 364 | write_pout.size - write_pout.pos); |
364 | 365 | ||
365 | if (0 > ret) | 366 | if (0 > ret) |
366 | { | 367 | { |
@@ -453,9 +454,8 @@ main (int argc, char *argv[]) | |||
453 | fprintf (stderr, | 454 | fprintf (stderr, |
454 | "This program must be started with the operating mode as argument.\n"); | 455 | "This program must be started with the operating mode as argument.\n"); |
455 | fprintf (stderr, | 456 | fprintf (stderr, |
456 | "Usage: options\n" | 457 | "Usage: options\n" "options:\n" "1 = first loopback file\n" |
457 | "options:\n" | 458 | "2 = second loopback file\n" "\n"); |
458 | "1 = first loopback file\n" "2 = second loopback file\n" "\n"); | ||
459 | return 1; | 459 | return 1; |
460 | } | 460 | } |
461 | if (strstr (argv[1], "1") || strstr (argv[1], "2")) | 461 | if (strstr (argv[1], "1") || strstr (argv[1], "2")) |