sort headers

This commit is contained in:
Gerolf Ziegenhain 2016-09-24 16:28:30 +02:00
parent d91a7b2a29
commit 2445a111f3
2 changed files with 12 additions and 15 deletions

View File

@ -40,6 +40,6 @@ struct data_packet_format{
// Define the packets used // Define the packets used
#define DEFAULT_CHANNEL 103 #define DEFAULT_CHANNEL 103
int prepare_id (struct data_packet_format *id_packet, char *id); int prepare_id (struct data_packet_format *id_packet, char *id);
int prepare_tx (struct data_packet_format *tx_packet, char *id); int prepare_tx (struct data_packet_format *tx_packet, char *id);

View File

@ -13,38 +13,35 @@
#include <math.h> #include <math.h>
#include <fcntl.h> #include <fcntl.h>
#include <pthread.h> #include <pthread.h>
#include <signal.h>
#include <arpa/inet.h>
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
#define BEEP_MORSE #define BEEP_MORSE
#ifdef BEEP_MORSE #ifdef BEEP_MORSE
#include <morse/beep.h> #include <morse/beep.h>
#else #else
#include "portaudio.h" #include "portaudio.h"
#endif #endif
#ifdef __MACH__ #ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#else #else
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include <asm-generic/ioctl.h> #include <asm-generic/ioctl.h>
#include <asm-generic/termios.h> #include <asm-generic/termios.h>
#endif #endif
#include <signal.h>
#include <arpa/inet.h>
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
#ifndef BEEP_MORSE // does not help!!
#include "beep.h"
#endif
//#define DEBUG 1 //#define DEBUG 1
#define MAXDATASIZE 1024 // max number of bytes we can get at once #define MAXDATASIZE 1024 // max number of bytes we can get at once
#include "cwprotocol.h" #include "cwprotocol.h"
struct command_packet_format connect_packet = {CON, DEFAULT_CHANNEL}; struct command_packet_format connect_packet = {CON, DEFAULT_CHANNEL};
struct command_packet_format disconnect_packet = {DIS, 0}; struct command_packet_format disconnect_packet = {DIS, 0};
struct data_packet_format id_packet; struct data_packet_format id_packet;