diff --git a/cpacfstats/cpacfstatsd.c b/cpacfstats/cpacfstatsd.c index ba371db1..68507500 100644 --- a/cpacfstats/cpacfstatsd.c +++ b/cpacfstats/cpacfstatsd.c @@ -108,7 +108,6 @@ static int recv_query(int s, enum ctr_e *ctr, enum cmd_e *cmd) return rc; } - static int send_answer(int s, int ctr, int state, uint64_t value) { struct msg m; @@ -124,7 +123,6 @@ static int send_answer(int s, int ctr, int state, uint64_t value) return send_msg(s, &m, DEFAULT_SEND_TIMEOUT); } - /* * Print according to protocol for PAI: * - first the state and the number of PAI counters that follow @@ -160,7 +158,6 @@ static int do_send_pai(int s, int user, unsigned int *counter) return rc; } - static int do_enable(int s, enum ctr_e ctr, unsigned int *supported_counters) { uint64_t value = 0; @@ -201,7 +198,6 @@ static int do_enable(int s, enum ctr_e ctr, unsigned int *supported_counters) return rc; } - static int do_disable(int s, enum ctr_e ctr, unsigned int *supported_counters) { int i, rc = 0; @@ -228,7 +224,6 @@ static int do_disable(int s, enum ctr_e ctr, unsigned int *supported_counters) return rc; } - static int do_reset(int s, enum ctr_e ctr, unsigned int *supported_counters) { int i, rc = 0, state; @@ -260,7 +255,6 @@ static int do_reset(int s, enum ctr_e ctr, unsigned int *supported_counters) return rc; } - static int do_print(int s, enum ctr_e ctr, unsigned int *supported_counters) { int i, rc = 0, state; @@ -292,7 +286,6 @@ static int do_print(int s, enum ctr_e ctr, unsigned int *supported_counters) return rc; } - static int become_daemon(int *startup_pipe) { int child_initialized = 0, fd; @@ -385,7 +378,6 @@ static int become_daemon(int *startup_pipe) return 0; } - static void remove_sock(void) { remove(SOCKET_FILE); @@ -447,14 +439,12 @@ static void remove_pidfile(void) remove(PID_FILE); } - void signalhandler(int sig) { perf_stop(); stopsig = sig; } - int eprint(const char *format, ...) { char buf[512]; @@ -476,7 +466,6 @@ int eprint(const char *format, ...) return n; } - /* * returns -1 on error * returns X where X is the found counters in dir