misc: correct additional errors from merge request #13

Additional errors resulting from merge request #13 are
being addressed in this commit. They involve two cases
of trailing whitespace and one xwarnx printf type arg.

Reference(s):
http://gitorious.org/procps/procps/merge_requests/13
. earlier build-sys fix
commit e2242cb943
. original merge
commit dd6f24dbed

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2013-09-12 12:12:12 -05:00 committed by Jaromir Capik
parent e2242cb943
commit e6bbcdb492
2 changed files with 3 additions and 3 deletions

View File

@ -499,7 +499,7 @@ static struct el * select_procs (int *num)
stderr);
exit (EXIT_FATAL);
}
memset(&task, 0, sizeof (task));
while(readproc(ptp, &task)) {
int match = 1;

View File

@ -640,14 +640,14 @@ static void skillsnice_parse(int argc,
case NS_OPTION:
ns_pid = atoi(optarg);
if (ns_pid == 0) {
xwarnx(_("invalid pid number %i"), optarg);
xwarnx(_("invalid pid number %s"), optarg);
kill_usage(stderr);
}
if (ns_read(ns_pid, &ns_task)) {
xwarnx(_("error reading reference namespace "
"information"));
kill_usage(stderr);
}
}
break;
case NSLIST_OPTION: