# | Line 32 | Line 32 | |
---|---|---|
32 | #include <errno.h> | |
33 | #include <netdb.h> | |
34 | ||
35 | < | #include <ukcprog.h> |
35 | > | #include "ukcprog.h" |
36 | #include "statgrab.h" | |
37 | ||
38 | #define LOG_CRIT 0 | |
# | Line 40 | Line 40 | |
40 | #define LOG_INFO 2 | |
41 | #define LOG_DEBUG 3 | |
42 | ||
43 | – | #define PID_FILE "/var/run/ihost.pid" |
44 | – | #define LOGFILE_PATH "/var/log/ihost.log" |
45 | – | #define VERSION ".03" |
46 | – | |
47 | – | #define MAX_UDP_PACKET_SIZE 8192 |
48 | – | |
43 | typedef struct{ | |
44 | int filtermanager_port; | |
45 | char *filtermanager_host; | |
# | Line 682 | Line 676 | int main(int argc, char **argv){ | |
676 | break; | |
677 | ||
678 | case 'V': | |
679 | < | fprintf(stderr, "%s version %s", argv[0], VERSION); |
679 | > | fprintf(stderr, "%s version %s\n", argv[0], VERSION); |
680 | break; | |
681 | ||
682 | default: | |
# | Line 723 | Line 717 | int main(int argc, char **argv){ | |
717 | exit(1); | |
718 | } | |
719 | ||
720 | < | if((ihost_config.log=fopen(LOGFILE_PATH, "a"))==NULL){ |
720 | > | if((ihost_config.log=fopen(LOG_FILE, "a"))==NULL){ |
721 | ihost_config.log=stderr; | |
722 | < | log_msg(LOG_CRIT, "Failed to open Logfiles %s for writing", LOGFILE_PATH); |
722 | > | log_msg(LOG_CRIT, "Failed to open Logfiles %s for writing", LOG_FILE); |
723 | exit(1); | |
724 | } | |
725 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |