aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-transport-wlan-helper.c16
-rw-r--r--src/transport/plugin_transport_wlan.h4
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,
455 455
456static void 456static void
457file_in_send (void *cls, 457file_in_send (void *cls,
458 void *client, 458 void *client,
459 const struct GNUNET_MessageHeader *hdr) 459 const struct GNUNET_MessageHeader *hdr)
460{ 460{
461 struct sendbuf * write_std = cls; 461 struct sendbuf * write_std = cls;
462 int sendsize; 462 uint16_t sendsize;
463 463
464 sendsize = ntohs(hdr->size); 464 sendsize = ntohs(hdr->size);
465 465
466 if(GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs(hdr->type)){ 466 if (GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA != ntohs(hdr->type))
467 fprintf(stderr, "Function file_in_send: wrong packet type\n"); 467 {
468 exit(1); 468 fprintf (stderr,
469 } 469 "Function file_in_send: wrong packet type\n");
470 exit(1);
471 }
470 if((sendsize + write_std->size) > MAXLINE * 2){ 472 if((sendsize + write_std->size) > MAXLINE * 2){
471 fprintf(stderr, "Function file_in_send: Packet too big for buffer\n"); 473 fprintf(stderr, "Function file_in_send: Packet too big for buffer\n");
472 exit(1); 474 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 @@
27#ifndef PLUGIN_TRANSPORT_WLAN 27#ifndef PLUGIN_TRANSPORT_WLAN
28#define PLUGIN_TRANSPORT_WLAN 28#define PLUGIN_TRANSPORT_WLAN
29 29
30#include <stdint.h>
30#include "gnunet_common.h" 31#include "gnunet_common.h"
31 32
32typedef unsigned int uint32_t;
33typedef unsigned short uint16_t;
34 33
35 34
36struct MacAddress 35struct MacAddress
@@ -82,7 +81,6 @@ struct IeeeHeader
82 /** 81 /**
83 * Duration / ID 82 * Duration / ID
84 */ 83 */
85
86 uint16_t duration_id GNUNET_PACKED; 84 uint16_t duration_id GNUNET_PACKED;
87 85
88 /** 86 /**