some code exports reorganization and cleanups
This commit is contained in:
5
yasnd.c
5
yasnd.c
@ -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);
|
||||
|
Reference in New Issue
Block a user