The branch main has been updated by jhb:

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

commit 7b043ce598649e54b9e752a670f6dd9c20391210
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2023-04-24 15:53:49 +0000
Commit:     John Baldwin <j...@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);

Reply via email to