Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2023 15:54:09 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bd22d268d36c - main - rpc.umntall: Use valid prototype for function declaration with no arguments.
Message-ID:  <202304241554.33OFs94U099932@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=bd22d268d36c94d3806890a0713697ccd1e1f796

commit bd22d268d36c94d3806890a0713697ccd1e1f796
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:49 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:49 +0000

    rpc.umntall: Use valid prototype for function declaration with no arguments.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39728
---
 usr.sbin/rpc.umntall/rpc.umntall.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/rpc.umntall/rpc.umntall.c b/usr.sbin/rpc.umntall/rpc.umntall.c
index 74df093e6d18..1ee5c6a7eb41 100644
--- a/usr.sbin/rpc.umntall/rpc.umntall.c
+++ b/usr.sbin/rpc.umntall/rpc.umntall.c
@@ -261,7 +261,8 @@ xdr_dir(XDR *xdrsp, char *dirp) {
 }
 
 static void
-usage() {
+usage(void)
+{
 	(void)fprintf(stderr, "%s\n",
 	    "usage: rpc.umntall [-kv] [-e expire] [-h host] [-p path]");
 	exit(1);



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