From ba1e093329d804092a363cd98bf20bf8f6945a54 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Jan 2011 08:34:16 +0000 Subject: [PATCH] stuff --- src/transport/gnunet-transport-wlan-helper.c | 16 +++++++++------- src/transport/plugin_transport_wlan.h | 4 +--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 15fe21cfd..11a7128c1 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c @@ -455,18 +455,20 @@ stdin_send (void *cls, 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); diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h index dd770e53e..fb1a7ff57 100644 --- a/src/transport/plugin_transport_wlan.h +++ b/src/transport/plugin_transport_wlan.h @@ -27,10 +27,9 @@ #ifndef PLUGIN_TRANSPORT_WLAN #define PLUGIN_TRANSPORT_WLAN +#include #include "gnunet_common.h" -typedef unsigned int uint32_t; -typedef unsigned short uint16_t; struct MacAddress @@ -82,7 +81,6 @@ struct IeeeHeader /** * Duration / ID */ - uint16_t duration_id GNUNET_PACKED; /** -- 2.25.1