some code exports reorganization and cleanups

This commit is contained in:
2011-12-19 11:08:19 +04:00
parent 989ca201e4
commit e7d900d9b7
4 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,5 @@
#include <sys/stat.h>
#include <sys/io.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
@ -13,7 +11,6 @@
cfg_t *cfg; // pointer to configuration structure
host_decl* hosts=NULL; // structure with hosts' definitions
int hosts_count=0; // count of hosts
int qid=-1; // IPC queue id
int debug_flag=0;
bool sms_send_enable=false; // send or not send alerts via SMS
char* phone_device=NULL; // phone device for gammu, for example: "/dev/ttyACM0"
@ -236,7 +233,7 @@ void signal_handler(int signum)
// free config structure
cfg_free(cfg);
// free gammu structure
GSM_FreeStateMachine(state_machine);
gammu_free();
// free hosts structures memory
if (hosts!=NULL)
free(hosts);