From 97408d8b109922416a9e2dc599e105559115ed44 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] ps/output.c: Remove the page_shift variable. It is static and not used anywhere. --- ps/output.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ps/output.c b/ps/output.c index 01b87658..e5e29243 100644 --- a/ps/output.c +++ b/ps/output.c @@ -88,7 +88,6 @@ static unsigned max_leftward = 0x12345678; /* space for LEFT stuff */ static int wide_signals; /* true if we have room */ static time_t seconds_since_1970; -static unsigned long page_shift; /*************************************************************************/ @@ -2148,17 +2147,6 @@ void init_output(void){ int outbuf_pages; char *outbuf; - switch(page_size){ - case 65536: page_shift = 16; break; - case 32768: page_shift = 15; break; - case 16384: page_shift = 14; break; - case 8192: page_shift = 13; break; - default: fprintf(stderr, _("unknown page size (assume 4096)\n")); - case 4096: page_shift = 12; break; - case 2048: page_shift = 11; break; - case 1024: page_shift = 10; break; - } - // add page_size-1 to round up outbuf_pages = (OUTBUF_SIZE+SPACE_AMOUNT+page_size-1)/page_size; outbuf = mmap(