--- projects/cms/source/ihost/ihost.c 2003/03/03 12:18:35 1.28 +++ projects/cms/source/ihost/ihost.c 2003/03/03 12:32:35 1.29 @@ -32,7 +32,7 @@ #include #include -#include +#include "ukcprog.h" #include "statgrab.h" #define LOG_CRIT 0 @@ -40,12 +40,6 @@ #define LOG_INFO 2 #define LOG_DEBUG 3 -#define PID_FILE "/var/run/ihost.pid" -#define LOGFILE_PATH "/var/log/ihost.log" -#define VERSION ".03" - -#define MAX_UDP_PACKET_SIZE 8192 - typedef struct{ int filtermanager_port; char *filtermanager_host; @@ -682,7 +676,7 @@ int main(int argc, char **argv){ break; case 'V': - fprintf(stderr, "%s version %s", argv[0], VERSION); + fprintf(stderr, "%s version %s\n", argv[0], VERSION); break; default: @@ -723,9 +717,9 @@ int main(int argc, char **argv){ exit(1); } - if((ihost_config.log=fopen(LOGFILE_PATH, "a"))==NULL){ + if((ihost_config.log=fopen(LOG_FILE, "a"))==NULL){ ihost_config.log=stderr; - log_msg(LOG_CRIT, "Failed to open Logfiles %s for writing", LOGFILE_PATH); + log_msg(LOG_CRIT, "Failed to open Logfiles %s for writing", LOG_FILE); exit(1); }