From owner-svn-src-all@FreeBSD.ORG Tue Jun 3 20:58:12 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D1B01EA; Tue, 3 Jun 2014 20:58:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1ACF729D7; Tue, 3 Jun 2014 20:58:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s53KwBK4081028; Tue, 3 Jun 2014 20:58:11 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s53KwBQ7081027; Tue, 3 Jun 2014 20:58:11 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201406032058.s53KwBQ7081027@svn.freebsd.org> From: Pietro Cerutti Date: Tue, 3 Jun 2014 20:58:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267026 - head/usr.bin/users X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2014 20:58:12 -0000 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); }