ps: cut out code unused code

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-11-02 17:50:59 +00:00 committed by Craig Small
parent 58713dbcc8
commit 4a6df5b133
2 changed files with 2 additions and 11 deletions

View File

@ -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){ void init_output(void){
int outbuf_pages; int outbuf_pages;
char *outbuf; char *outbuf;

View File

@ -179,7 +179,9 @@ static void stack_trace_sigsegv(int signum){
} }
/************/ /************/
#ifdef DEBUG
void init_stack_trace(char *prog_name){ void init_stack_trace(char *prog_name){
stored_prog_name = prog_name; stored_prog_name = prog_name;
signal(SIGSEGV, stack_trace_sigsegv); signal(SIGSEGV, stack_trace_sigsegv);
} }
#endif