fix built-in test code

This commit is contained in:
albert 2005-01-10 21:32:49 +00:00
parent 8b29cc8a5d
commit 31fca6bb2d

View File

@ -1128,12 +1128,14 @@ fail:
static int pr_t_unlimited(char *restrict const outbuf, const proc_t *restrict const pp){
static const char *const vals[] = {"[123456789-12345] <defunct>","ps","123456789-123456"};
(void)pp;
return snprintf(outbuf, max_rightward+1, "%s", vals[lines_to_next_header%3u]);
snprintf(outbuf, max_rightward+1, "%s", vals[lines_to_next_header%3u]);
return strlen(outbuf);
}
static int pr_t_unlimited2(char *restrict const outbuf, const proc_t *restrict const pp){
static const char *const vals[] = {"unlimited", "[123456789-12345] <defunct>","ps","123456789-123456"};
(void)pp;
return snprintf(outbuf, max_rightward+1, "%s", vals[lines_to_next_header%4u]);
snprintf(outbuf, max_rightward+1, "%s", vals[lines_to_next_header%4u]);
return strlen(outbuf);
}
// like "etime"