aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-wlan-sender.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-06 20:55:28 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-06 20:55:28 +0000
commit61c39c60565b386e0e12ea669556b030e8cd7180 (patch)
tree59109aeab8297bdc996faca8c4e38ec7426c36cf /src/transport/gnunet-transport-wlan-sender.c
parent780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff)
downloadgnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz
gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip
-remove trailing whitespace
Diffstat (limited to 'src/transport/gnunet-transport-wlan-sender.c')
-rw-r--r--src/transport/gnunet-transport-wlan-sender.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/gnunet-transport-wlan-sender.c b/src/transport/gnunet-transport-wlan-sender.c
index 0ab6c9fd1..12989dd55 100644
--- a/src/transport/gnunet-transport-wlan-sender.c
+++ b/src/transport/gnunet-transport-wlan-sender.c
@@ -74,7 +74,7 @@ getRadiotapHeader (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *header,
74 * @return GNUNET_YES if there was no error 74 * @return GNUNET_YES if there was no error
75 */ 75 */
76static int 76static int
77getWlanHeader (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *Header, 77getWlanHeader (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *Header,
78 const struct GNUNET_TRANSPORT_WLAN_MacAddress *to_mac_addr, 78 const struct GNUNET_TRANSPORT_WLAN_MacAddress *to_mac_addr,
79 const struct GNUNET_TRANSPORT_WLAN_MacAddress *mac, unsigned int size) 79 const struct GNUNET_TRANSPORT_WLAN_MacAddress *mac, unsigned int size)
80{ 80{
@@ -148,14 +148,14 @@ main (int argc, char *argv[])
148 /* Setup communication pipeline first */ 148 /* Setup communication pipeline first */
149 if (pipe (commpipe)) 149 if (pipe (commpipe))
150 { 150 {
151 fprintf (stderr, 151 fprintf (stderr,
152 "Failed to create pipe: %s\n", 152 "Failed to create pipe: %s\n",
153 STRERROR (errno)); 153 STRERROR (errno));
154 exit (1); 154 exit (1);
155 } 155 }
156 if (pipe (macpipe)) 156 if (pipe (macpipe))
157 { 157 {
158 fprintf (stderr, 158 fprintf (stderr,
159 "Failed to create pipe: %s\n", 159 "Failed to create pipe: %s\n",
160 STRERROR (errno)); 160 STRERROR (errno));
161 exit (1); 161 exit (1);
@@ -164,8 +164,8 @@ main (int argc, char *argv[])
164 /* Attempt to fork and check for errors */ 164 /* Attempt to fork and check for errors */
165 if ((pid = fork ()) == -1) 165 if ((pid = fork ()) == -1)
166 { 166 {
167 fprintf (stderr, "Failed to fork: %s\n", 167 fprintf (stderr, "Failed to fork: %s\n",
168 STRERROR (errno)); 168 STRERROR (errno));
169 exit (1); 169 exit (1);
170 } 170 }
171 memset (msg_buf, 0x42, sizeof (msg_buf)); 171 memset (msg_buf, 0x42, sizeof (msg_buf));
@@ -183,12 +183,12 @@ main (int argc, char *argv[])
183 "Failed to close fd: %s\n", 183 "Failed to close fd: %s\n",
184 strerror (errno)); 184 strerror (errno));
185 if (sizeof (hcm) != read (macpipe[0], &hcm, sizeof (hcm))) 185 if (sizeof (hcm) != read (macpipe[0], &hcm, sizeof (hcm)))
186 fprintf (stderr, 186 fprintf (stderr,
187 "Failed to read hcm...\n"); 187 "Failed to read hcm...\n");
188 fprintf (stderr, 188 fprintf (stderr,
189 "Got MAC %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", 189 "Got MAC %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n",
190 hcm.mac.mac[0], hcm.mac.mac[1], 190 hcm.mac.mac[0], hcm.mac.mac[1],
191 hcm.mac.mac[2], hcm.mac.mac[3], hcm.mac.mac[4], hcm.mac.mac[5]); 191 hcm.mac.mac[2], hcm.mac.mac[3], hcm.mac.mac[4], hcm.mac.mac[5]);
192 radiotap = (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *) msg_buf; 192 radiotap = (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *) msg_buf;
193 getRadiotapHeader (radiotap, WLAN_MTU); 193 getRadiotapHeader (radiotap, WLAN_MTU);
194 getWlanHeader (&radiotap->frame, &outmac, &inmac, 194 getWlanHeader (&radiotap->frame, &outmac, &inmac,
@@ -212,7 +212,7 @@ main (int argc, char *argv[])
212 printf ("send %f kbytes/s\n", bytes_per_s); 212 printf ("send %f kbytes/s\n", bytes_per_s);
213 start = akt; 213 start = akt;
214 count = 0; 214 count = 0;
215 } 215 }
216 } 216 }
217 } 217 }
218 else 218 else