version 1.57, 2007/10/04 07:47:53 |
version 1.58, 2007/10/16 07:33:08 |
|
|
header_text = format_header(uname_field); |
header_text = format_header(uname_field); |
|
|
/* initialize display interface */ |
/* initialize display interface */ |
if ((max_topn = display_init(&statics)) == -1) { |
max_topn = display_init(&statics); |
warnx("can't allocate sufficient memory"); |
|
exit(4); |
|
} |
|
/* print warning if user requested more processes than we can display */ |
/* print warning if user requested more processes than we can display */ |
if (topn > max_topn) { |
if (topn > max_topn) { |
warnx("warning: this terminal can only display %d processes", |
warnx("warning: this terminal can only display %d processes", |