aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd/lockd.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-04-24 15:53:49 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-04-24 15:53:49 +0000
commit7b043ce598649e54b9e752a670f6dd9c20391210 (patch)
tree26959b08927761117ae52c5a6a69a6e00088c558 /usr.sbin/rpc.lockd/lockd.c
parent0a04bb7a4fef8cd7277acc1490803b9939a9b1e1 (diff)
downloadsrc-7b043ce598649e54b9e752a670f6dd9c20391210.tar.gz
src-7b043ce598649e54b9e752a670f6dd9c20391210.zip
rpc.lockd: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39727
Diffstat (limited to 'usr.sbin/rpc.lockd/lockd.c')
-rw-r--r--usr.sbin/rpc.lockd/lockd.c5
1 files 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);