mirror of
https://gitlab.com/procps-ng/procps.git
synced 2024-11-27 20:14:05 +08:00
fix built-in test code
This commit is contained in:
parent
8b29cc8a5d
commit
31fca6bb2d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user