rpc.lockd: Use valid prototypes for function declarations with no arguments.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D39727
This commit is contained in:
John Baldwin 2023-04-24 08:53:49 -07:00
parent 0a04bb7a4f
commit 7b043ce598
1 changed files with 3 additions and 2 deletions

View File

@ -845,7 +845,7 @@ sigalarm_handler(void)
} }
void void
usage() usage(void)
{ {
errx(1, "usage: rpc.lockd [-d <debuglevel>]" errx(1, "usage: rpc.lockd [-d <debuglevel>]"
" [-F] [-g <grace period>] [-h <bindip>] [-p <port>]"); " [-F] [-g <grace period>] [-h <bindip>] [-p <port>]");
@ -904,7 +904,8 @@ init_nsm(void)
/* /*
* Out of memory, fatal * Out of memory, fatal
*/ */
void out_of_mem() void
out_of_mem(void)
{ {
syslog(LOG_ERR, "out of memory"); syslog(LOG_ERR, "out of memory");
exit(2); exit(2);