Fixed warnings produced by -Wall
Fixed warnings produced by -Wall

file:a/makefile -> file:b/makefile
--- a/makefile
+++ b/makefile
@@ -9,7 +9,7 @@
 ###############################################################################
 
 CC=gcc
-CFLAGS=-O3
+CFLAGS=-O3 -Wall
 
 .PHONY: build disable-float
 build: create-dirs all

--- a/src/crc/crcccitt.c
+++ b/src/crc/crcccitt.c
@@ -2,17 +2,16 @@
 
 #include "crcccitt.h"
 
-unsigned short CRCCCITT(uint8_t *data, uint16_t len, uint16_t polynomial){
+uint16_t CRCCCITT(uint8_t *data, uint16_t len, uint16_t polynomial){
 
 	uint16_t crc = 0xFFFF;
-	uint8_t i, j;
+	uint8_t i;
 
 	while(len--){
 
 		crc ^= *data++;
 
-		int j;
-		for(j = 0; j < 8; j++){
+		for(i = 0; i < 8; i++){
 			if(crc & 0x0001)
 				crc = (crc >> 1) ^ polynomial;
 			else

--- a/src/crc/crcccitt.h
+++ b/src/crc/crcccitt.h
@@ -5,7 +5,7 @@
 
 #include <stdint.h>
 
-unsigned short CRCCCITT(uint8_t *data, uint16_t len, uint16_t polynomial);
+uint16_t CRCCCITT(uint8_t *data, uint16_t len, uint16_t polynomial);
 
 #endif
 

--- a/src/packet/APRSPacket.c
+++ b/src/packet/APRSPacket.c
@@ -22,7 +22,7 @@
 		if(n+1 >= data->len) break;
 
 		// Check for 0 bit set on end of last address character indicating that there are no more repeater addresses
-		if(data->data[n-1] & 0x01 != 0) break;
+		if((data->data[n-1] & 0x01) != 0) break;
 
 		if(packet->repeaters > 7) break;
 
@@ -40,9 +40,9 @@
 
 }
 
-unsigned short APRSPacket_crc(APRSPacket *packet){
+uint16_t APRSPacket_crc(APRSPacket *packet){
 
-	return CRCCCITT(packet->data.data, packet->data.len - 2, APRS_CRC_POLY);
+	return CRCCCITT((uint8_t*) packet->data.data, packet->data.len - 2, APRS_CRC_POLY);
 
 }
 

--- a/src/packet/APRSPacket.h
+++ b/src/packet/APRSPacket.h
@@ -2,6 +2,7 @@
 #define APRSPACKET_H
 
 #include <stdlib.h>
+#include <stdint.h>
 #include <stdbool.h>
 
 #include "../crc/crcccitt.h"

--- a/src/packet/char_array_expandable.c
+++ b/src/packet/char_array_expandable.c
@@ -2,27 +2,27 @@
 
 #include "char_array_expandable.h"
 
-void char_array_expandable_init(char_array_expandable *self, unsigned short capacity){
+void char_array_expandable_init(char_array_expandable *self, uint16_t capacity){
 
 	self->length = 0;
 	self->capacity = capacity;
 
-	self->data = (signed char*) malloc(sizeof(char)*capacity);
+	self->data = (int8_t*) malloc(sizeof(int8_t)*capacity);
 
 }
 
-void char_array_expandable_put(char_array_expandable *self, signed char c){
+void char_array_expandable_put(char_array_expandable *self, int8_t c){
 
 	if(self->length == self->capacity){
 
-		unsigned char old_capacity = self->capacity;
+		uint16_t old_capacity = self->capacity;
 
 		self->capacity += self->capacity/5;
 
-		signed char *new_data = (signed char*) malloc(sizeof(char) * self->capacity);
-		signed char *old_data = self->data;
+		int8_t *new_data = (int8_t*) malloc(sizeof(int8_t) * self->capacity);
+		int8_t *old_data = self->data;
 
-		unsigned char i;
+		uint16_t i;
 		for(i = 0; i < old_capacity; i++)
 			new_data[i] = old_data[i];
 
@@ -38,7 +38,7 @@
 
 }
 
-unsigned short char_array_expandable_size(char_array_expandable *self){
+uint16_t char_array_expandable_size(char_array_expandable *self){
 
 	return self->length;
 

--- a/src/packet/char_array_expandable.h
+++ b/src/packet/char_array_expandable.h
@@ -4,21 +4,22 @@
 #define CHAR_ARRAY_EXPANDABLE_H
 
 #include <stdlib.h>
+#include <stdint.h>
 
 typedef struct {
 
-	unsigned short capacity;
-	unsigned short length;
+	uint16_t capacity;
+	uint16_t length;
 
-	signed char *data;
+	int8_t *data;
 
 } char_array_expandable;
 
-void char_array_expandable_init(char_array_expandable *self, unsigned short capacity);
+void char_array_expandable_init(char_array_expandable *self, uint16_t capacity);
 
-void char_array_expandable_put(char_array_expandable *self, signed char c);
+void char_array_expandable_put(char_array_expandable *self, int8_t c);
 
-unsigned short char_array_expandable_size(char_array_expandable *self);
+uint16_t char_array_expandable_size(char_array_expandable *self);
 
 void char_array_expandable_clear(char_array_expandable *self);
 

--- a/src/packet/packet_main.c
+++ b/src/packet/packet_main.c
@@ -3,12 +3,12 @@
 #include "packet_main.h"
 
 // Command Line Parameters
-const signed char *program_version = "packet 0.7";
-const signed char *program_bug_address = "<dryerzinia@gmail.com>";
-
-static signed char doc[] = "packet -- A program for demodulating AFSK encoded APRS packets";
-
-static signed char args_doc[] = "";
+const char *program_version = "packet 0.7";
+const char *program_bug_address = "<dryerzinia@gmail.com>";
+
+static char doc[] = "packet -- A program for demodulating AFSK encoded APRS packets";
+
+static char args_doc[] = "";
 
 static struct argp_option options[] = {
 		{"filename", 'i', "FILE", OPTION_ARG_OPTIONAL, "File to read samples from (stdin)"},
@@ -25,7 +25,7 @@
 
 struct arguments {
 
-	signed char *filename;
+	char *filename;
 
 	int frequency_0;
 	int frequency_1;
@@ -145,11 +145,11 @@
 
 void print_packet(APRSPacket *packet, bool show_errors_bool, bool raw){
 
-	unsigned short fsc = APRSPacket_crc(packet);
+	uint16_t fsc = APRSPacket_crc(packet);
 
 	/* CRC is added to packet with bytes reversed
 	 */
-	unsigned short fsc2 = packet->data.data[packet->data.len-1];
+	uint16_t fsc2 = packet->data.data[packet->data.len-1];
 	fsc2 <<= 8;
 	fsc2 |= packet->data.data[packet->data.len-2] & 0xFF;