summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-09-17 12:57:14 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-09-17 12:57:14 +0200
commitd584263e434176a05684026800f45cc15cc73c7a (patch)
treee4b606bf9ad1f01ac9cb11ff182102c23df23003
parentcdbf6a42292d3d49a9d32edf49cdb32f7bb56fdb (diff)
downloadextrace-d584263e434176a05684026800f45cc15cc73c7a.tar.gz
extrace-d584263e434176a05684026800f45cc15cc73c7a.tar.xz
extrace-d584263e434176a05684026800f45cc15cc73c7a.zip
pwait: style
-rw-r--r--pwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwait.c b/pwait.c
index 2ed699c..e6fde39 100644
--- a/pwait.c
+++ b/pwait.c
@@ -180,8 +180,8 @@ usage:
 	for (n = m = 0; n < argc; n++) {
 		errno = 0;
 		pid = strtol(argv[n], &end, 10);
-		if (pid < 0 || *end != '\0' || errno != 0) {
-			fprintf(stderr, "%s: bad process id\n", argv[n]);
+		if (pid < 0 || *end || errno != 0) {
+			fprintf(stderr, "%s: invalid process id\n", argv[n]);
 			continue;
 		}
 		pids[m++] = pid;