summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf/ctfstrip/ctfstrip.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-15 21:08:25 +0000
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2019-01-09 11:47:04 +0100
commit93b8872871607b3d21317283c1230b2a4a00920b (patch)
tree9ca8e35e28b51f3a98895caa4c6d05cba30fb2a3 /usr/src/tools/ctf/ctfstrip/ctfstrip.c
parent64f9afd1fd6b5f36ed2c633d603a3b551da6f3d4 (diff)
downloadillumos-joyent-93b8872871607b3d21317283c1230b2a4a00920b.tar.gz
10075 make usr/src/tools smatch clean
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/tools/ctf/ctfstrip/ctfstrip.c')
-rw-r--r--usr/src/tools/ctf/ctfstrip/ctfstrip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/tools/ctf/ctfstrip/ctfstrip.c b/usr/src/tools/ctf/ctfstrip/ctfstrip.c
index 60180c6921..3cb3ed9fea 100644
--- a/usr/src/tools/ctf/ctfstrip/ctfstrip.c
+++ b/usr/src/tools/ctf/ctfstrip/ctfstrip.c
@@ -11,6 +11,7 @@
/*
* Copyright 2011 Jason King. All rights reserved.
+ * Copyright (c) 2018, Joyent, Inc.
*/
#include <stdlib.h>
@@ -132,7 +133,7 @@ fix_file(const char *filename, mode_t mode)
return (B_FALSE);
}
- waitpid(pid, &stat, 0);
+ (void) waitpid(pid, &stat, 0);
if (!WIFEXITED(stat) || WEXITSTATUS(stat) != 0) {
warnx("Removing CTF information from %s failed", filename);
return (B_FALSE);