From nobody Wed Nov 27 14:27:00 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xz1wh48HQz5fHFR; Wed, 27 Nov 2024 14:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xz1wh1W6hz4YRc; Wed, 27 Nov 2024 14:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732717620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fc719ylna8S+d+52O+oJn+F+rDJF1pKmhyVa15VUo0M=; b=oheXMAbs7S9gHOxs37U18itbKPw7NdezX/Wu0+2gYq2Do2VCLmj59b/SRqX0n0tOqqox3J nLMIHpiLS/FhJmYvz5Jqq8mmpV+nNRS0oAPGja6Uq260NlGeydpeK6lGEC6I98VjYFfSTq 9p9RWngkzRxpWr5eSfAOeZ8tA7C9pE0+auJS00CCwyvZNqKHpVx5UqOVc4Jtb/ClLJbwPW Q+bHC2khwo/In1Y+agchj1mcIfHH8AVnfvuxASZZgucUBBur5S3uEv0ML+869MGVH3eT24 Ty3j9ygmZvmP2Okckw+0hJCOULheeqwQ3+LKuquVPrM9S7n4e3rz7PZJX6SSnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732717620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fc719ylna8S+d+52O+oJn+F+rDJF1pKmhyVa15VUo0M=; b=TI9+Zmg7YEfMz74DRshbzpSGyCqoRcLYlYxreKP5Z0GTZfRn2QtiHYHcdHXBo/9VlwDgPA e2w8wNAQbPl6WJRj6Ed9J1vPy21b+4aSgRvbeBFN+1jPf7DNJ9WB9C8DijcfHBnJaxUouZ I8CMFz1I/QCZF7MUlOKWAIQXSatSnI7n2p4VH2+10Sof0VbrRnjtI5M6oX+JnBe1vgjxDl MZ55QUROqIT7437X5HmjnyM9RQlazMnpmsqgUdkhuKKUusZxTn+4wCabFpaJWdPUAU5E9w nBY2WOnWEPfRmIvvWcDWt9/mOLiDIrXALUtp9nRUiVwudYVvRRSCfJ+yRiyAew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732717620; a=rsa-sha256; cv=none; b=t+Cz5GyUk8RVe6AI5y3O51GJVaE6IMTPh7vcw7Plqq3hladu6hLWURthzbpdTlgZRrKftz 9tNhODCOU/5pOPU7wSxEaoHFgCKThGvAr9969z84QdhSntODccOCh8ps8uad2m6XL+AiMU CBAVu9bzASrJ/dHTgOsBkYAa/EX8Z8Adpc0KD9K4sU37CDjWv9fwElMMJGdiaL6f3Of+pq wXgpqlPp12tmQusnIrCegAx+oVNmckKBPy0mHr11ZmESM752KGwSikmIqYhNMDP6u+tAEP 6iC6+Pd29Y0YW83paQISQXeVjtaf5oW2FVXUkJmIu4YBrTt0SORA19KzDdyhng== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xz1wh0syQz1D04; Wed, 27 Nov 2024 14:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4ARER0TD033446; Wed, 27 Nov 2024 14:27:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ARER0VT033439; Wed, 27 Nov 2024 14:27:00 GMT (envelope-from git) Date: Wed, 27 Nov 2024 14:27:00 GMT Message-Id: <202411271427.4ARER0VT033439@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mariusz Zaborski Subject: git: 0963af50e96d - main - perror: style nits List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: oshogbo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0963af50e96d9c8e93041e9faf281c895bb53dbe Auto-Submitted: auto-generated The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=0963af50e96d9c8e93041e9faf281c895bb53dbe commit 0963af50e96d9c8e93041e9faf281c895bb53dbe Author: Mariusz Zaborski AuthorDate: 2024-11-27 14:22:55 +0000 Commit: Mariusz Zaborski CommitDate: 2024-11-27 14:26:51 +0000 perror: style nits --- usr.bin/perror/perror.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/perror/perror.c b/usr.bin/perror/perror.c index 6341928e9024..4ef77aefdd31 100644 --- a/usr.bin/perror/perror.c +++ b/usr.bin/perror/perror.c @@ -40,7 +40,7 @@ static void usage(void) __dead2; -int +int main(int argc, char **argv) { char *cp; @@ -63,7 +63,7 @@ main(int argc, char **argv) if (errno != 0) err(EXIT_FAILURE, NULL); - if ((errstr = strerror(errnum)) == NULL) + if ((errstr = strerror(errnum)) == NULL) err(EXIT_FAILURE, NULL); printf("%s\n", errstr); @@ -71,7 +71,7 @@ main(int argc, char **argv) exit(EXIT_SUCCESS); } -static void +static void usage(void) { fprintf(stderr, "usage: perror number\n");