Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2014 20:58:11 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267026 - head/usr.bin/users
Message-ID:  <201406032058.s53KwBQ7081027@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406032058.s53KwBQ7081027>