diff --git a/ps/output.c b/ps/output.c index 9644ed3b..1f7e4940 100644 --- a/ps/output.c +++ b/ps/output.c @@ -1994,17 +1994,6 @@ void show_one_proc(const proc_t *restrict const p, const format_node *restrict f } -#ifdef TESTING -static void sanity_check(void){ - format_struct *fs = format_array; - while((fs->spec)[0] != '~'){ - if(strlen(fs->head) > fs->width) printf("%d %s\n",strlen(fs->head),fs->spec); - fs++; - } -} -#endif - - void init_output(void){ int outbuf_pages; char *outbuf; diff --git a/ps/stacktrace.c b/ps/stacktrace.c index a4e2938c..a0b4755c 100644 --- a/ps/stacktrace.c +++ b/ps/stacktrace.c @@ -179,7 +179,9 @@ static void stack_trace_sigsegv(int signum){ } /************/ +#ifdef DEBUG void init_stack_trace(char *prog_name){ stored_prog_name = prog_name; signal(SIGSEGV, stack_trace_sigsegv); } +#endif