Date: Mon, 24 Apr 2023 15:54:08 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: 7b043ce59864 - main - rpc.lockd: Use valid prototypes for function declarations with no arguments. Message-ID: <202304241554.33OFs8XG099906@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=7b043ce598649e54b9e752a670f6dd9c20391210 commit 7b043ce598649e54b9e752a670f6dd9c20391210 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.lockd: Use valid prototypes for function declarations with no arguments. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39727 --- usr.sbin/rpc.lockd/lockd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c index 24dacc81a37a..0a4832256b4e 100644 --- a/usr.sbin/rpc.lockd/lockd.c +++ b/usr.sbin/rpc.lockd/lockd.c @@ -845,7 +845,7 @@ sigalarm_handler(void) } void -usage() +usage(void) { errx(1, "usage: rpc.lockd [-d <debuglevel>]" " [-F] [-g <grace period>] [-h <bindip>] [-p <port>]"); @@ -904,7 +904,8 @@ init_nsm(void) /* * Out of memory, fatal */ -void out_of_mem() +void +out_of_mem(void) { syslog(LOG_ERR, "out of memory"); exit(2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304241554.33OFs8XG099906>