From 4a89410b494546ec0f863102ae9f16e7d553eb47 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Tue, 23 Nov 2010 19:00:24 +0100 Subject: [PATCH] [Listener] packet_type is now unsigned --- infrastructure-centred/owlps-listener/owlps-listenerd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure-centred/owlps-listener/owlps-listenerd.c b/infrastructure-centred/owlps-listener/owlps-listenerd.c index 0e93896..370304e 100644 --- a/infrastructure-centred/owlps-listener/owlps-listenerd.c +++ b/infrastructure-centred/owlps-listener/owlps-listenerd.c @@ -488,7 +488,8 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header, struct iphdr *packet_ip_header = NULL ; // Pointer to the (possible) UDP header of the packet: struct udphdr *packet_udp_header = NULL ; - char packet_type ; // Localisation request type (request, calibration) + // Localisation request type (request, calibration, autocalibration): + unsigned char packet_type ; BOOL is_explicit_packet = TRUE ; // Is the packet an explicit request? int i ; // Iterator