summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-22 02:18:29 +0000
committergad <gad@FreeBSD.org>2004-06-22 02:18:29 +0000
commit0f6d1eb8fff4e168d25f80b3b0f51cec1d6dad48 (patch)
tree15126dd540f4f6f3ed40f2fecf7b63ea643a668e /bin/ps
parented35e71589befee3ddbf8133d0ffa0fd310f9a02 (diff)
downloadFreeBSD-src-0f6d1eb8fff4e168d25f80b3b0f51cec1d6dad48.zip
FreeBSD-src-0f6d1eb8fff4e168d25f80b3b0f51cec1d6dad48.tar.gz
Get rid of a cast to '(void) ' on the return of a call to strcpy.
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index d6e0109..1e9fed8 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -127,6 +127,6 @@ fmt_argv(char **argv, char *cmd, size_t maxlen)
else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0)
sprintf(cp, "%s (%.*s)", ap, (int)maxlen, cmd);
else
- (void) strcpy(cp, ap);
+ strcpy(cp, ap);
return (cp);
}
OpenPOWER on IntegriCloud