svn commit: r267026 - head/usr.bin/users
Pietro Cerutti
gahr at FreeBSD.org
Tue Jun 3 20:58:12 UTC 2014
Author: gahr (ports committer)
Date: Tue Jun 3 20:58:11 2014
New Revision: 267026
URL: http://svnweb.freebsd.org/changeset/base/267026
Log:
- style, remove (void) in front of printf and the like
CR: D161
Approved by: cognet, bapt
Modified:
head/usr.bin/users/users.c
Modified: head/usr.bin/users/users.c
==============================================================================
--- head/usr.bin/users/users.c Tue Jun 3 20:27:07 2014 (r267025)
+++ head/usr.bin/users/users.c Tue Jun 3 20:58:11 2014 (r267026)
@@ -86,17 +86,17 @@ main(int argc, char **argv)
/* NOTREACHED */
}
}
- (void)strlcpy(names[ncnt], ut->ut_user, sizeof(*names));
+ strlcpy(names[ncnt], ut->ut_user, sizeof(*names));
++ncnt;
}
endutxent();
if (ncnt > 0) {
qsort(names, ncnt, sizeof(namebuf), scmp);
- (void)printf("%s", names[0]);
+ printf("%s", names[0]);
for (cnt = 1; cnt < ncnt; ++cnt)
if (strcmp(names[cnt], names[cnt - 1]) != 0)
- (void)printf(" %s", names[cnt]);
- (void)printf("\n");
+ printf(" %s", names[cnt]);
+ printf("\n");
}
exit(0);
}
@@ -104,7 +104,7 @@ main(int argc, char **argv)
static void
usage(void)
{
- (void)fprintf(stderr, "usage: users\n");
+ fprintf(stderr, "usage: users\n");
exit(1);
}
More information about the svn-src-all
mailing list