gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14265 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r14265 - gnunet/src/transport
Date: Wed, 26 Jan 2011 09:34:16 +0100

Author: grothoff
Date: 2011-01-26 09:34:16 +0100 (Wed, 26 Jan 2011)
New Revision: 14265

Modified:
   gnunet/src/transport/gnunet-transport-wlan-helper.c
   gnunet/src/transport/plugin_transport_wlan.h
Log:
stuff

Modified: gnunet/src/transport/gnunet-transport-wlan-helper.c
===================================================================
--- gnunet/src/transport/gnunet-transport-wlan-helper.c 2011-01-26 08:23:34 UTC 
(rev 14264)
+++ gnunet/src/transport/gnunet-transport-wlan-helper.c 2011-01-26 08:34:16 UTC 
(rev 14265)
@@ -455,18 +455,20 @@
 
 static void
 file_in_send (void *cls,
-                      void *client,
-                      const struct GNUNET_MessageHeader *hdr)
+             void *client,
+             const struct GNUNET_MessageHeader *hdr)
 {
   struct sendbuf * write_std = cls;
-  int sendsize;
+  uint16_t sendsize;
 
   sendsize = ntohs(hdr->size);
 
-  if(GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs(hdr->type)){
-    fprintf(stderr, "Function file_in_send: wrong packet type\n");
-    exit(1);
-  }
+  if (GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs(hdr->type))
+    {
+      fprintf (stderr, 
+              "Function file_in_send: wrong packet type\n");
+      exit(1);
+    }
   if((sendsize + write_std->size) > MAXLINE * 2){
     fprintf(stderr, "Function file_in_send: Packet too big for buffer\n");
     exit(1);

Modified: gnunet/src/transport/plugin_transport_wlan.h
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.h        2011-01-26 08:23:34 UTC 
(rev 14264)
+++ gnunet/src/transport/plugin_transport_wlan.h        2011-01-26 08:34:16 UTC 
(rev 14265)
@@ -27,10 +27,9 @@
 #ifndef PLUGIN_TRANSPORT_WLAN
 #define PLUGIN_TRANSPORT_WLAN
 
+#include <stdint.h>
 #include "gnunet_common.h"
 
-typedef unsigned int uint32_t;
-typedef unsigned short uint16_t;
 
 
 struct MacAddress
@@ -82,7 +81,6 @@
   /**
    * Duration / ID
    */
-
   uint16_t duration_id GNUNET_PACKED;
   
   /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]