call GNUNET_SERVER_receive_done() also on internal error paths
[oweals/gnunet.git] / src / transport / gnunet-transport-wlan-receiver.c
index ccc1d291fbc3fa8f5fe8d31669d9b28b561f36e4..a2fe58519752e0df11060cedc579037b00e35dd6 100644 (file)
@@ -1,6 +1,6 @@
 /*
  This file is part of GNUnet
- (C) 2012 Christian Grothoff (and other contributing authors)
Copyright (C) 2012 Christian Grothoff (and other contributing authors)
 
  GNUnet is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
@@ -53,7 +53,7 @@ main (int argc, char *argv[])
   /* Setup communication pipeline first */
   if (pipe (commpipe))
   {
-    fprintf (stderr, 
+    fprintf (stderr,
             "Failed to create pipe: %s\n",
             STRERROR (errno));
     exit (1);
@@ -62,8 +62,8 @@ main (int argc, char *argv[])
   /* Attempt to fork and check for errors */
   if ((pid = fork ()) == -1)
   {
-    fprintf (stderr, "Failed to fork: %s\n", 
-            STRERROR (errno));    
+    fprintf (stderr, "Failed to fork: %s\n",
+            STRERROR (errno));
     exit (1);
   }
 
@@ -90,7 +90,7 @@ main (int argc, char *argv[])
       {
        bytes_per_s = count / (akt - start);
        bytes_per_s /= 1024;
-       printf ("recv %f kb/s\n", bytes_per_s); 
+       printf ("recv %f kb/s\n", bytes_per_s);
        start = akt;
        count = 0;
       }