aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/comcontrol/comcontrol.c2
-rw-r--r--sbin/mount/vfslist.c7
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c11
-rw-r--r--sbin/mount_nullfs/mount_nullfs.c6
-rw-r--r--sbin/rcorder/ealloc.c16
-rw-r--r--sbin/rcorder/hash.c40
-rw-r--r--sbin/rcorder/rcorder.c71
-rw-r--r--usr.bin/find/function.c2
-rw-r--r--usr.bin/gencat/gencat.c2
-rw-r--r--usr.bin/mklocale/lex.l2
-rw-r--r--usr.bin/mklocale/yacc.y31
-rw-r--r--usr.sbin/config/lang.l2
-rw-r--r--usr.sbin/cpucontrol/cpucontrol.c2
-rw-r--r--usr.sbin/eeprom/eeprom.c2
-rw-r--r--usr.sbin/fifolog/lib/getdate.y2
-rw-r--r--usr.sbin/lastlogin/lastlogin.c6
-rw-r--r--usr.sbin/nfsd/nfsd.c6
-rw-r--r--usr.sbin/pmcannotate/pmcannotate.c4
-rw-r--r--usr.sbin/powerd/powerd.c2
-rw-r--r--usr.sbin/sa/main.c2
-rw-r--r--usr.sbin/sa/pdb.c8
-rw-r--r--usr.sbin/sa/usrdb.c8
-rw-r--r--usr.sbin/watchdogd/watchdogd.c4
23 files changed, 88 insertions, 150 deletions
diff --git a/sbin/comcontrol/comcontrol.c b/sbin/comcontrol/comcontrol.c
index 753ded36d1a9..a7c696ce6794 100644
--- a/sbin/comcontrol/comcontrol.c
+++ b/sbin/comcontrol/comcontrol.c
@@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
static void usage(void);
static void
-usage()
+usage(void)
{
fprintf(stderr,
"usage: comcontrol <filename> [dtrwait <n>] [drainwait <n>]\n");
diff --git a/sbin/mount/vfslist.c b/sbin/mount/vfslist.c
index f95a76efdb24..fa5fdf6d9540 100644
--- a/sbin/mount/vfslist.c
+++ b/sbin/mount/vfslist.c
@@ -44,9 +44,7 @@ __FBSDID("$FreeBSD$");
static int skipvfs;
int
-checkvfsname(vfsname, vfslist)
- const char *vfsname;
- const char **vfslist;
+checkvfsname(const char *vfsname, const char **vfslist)
{
if (vfslist == NULL)
@@ -60,8 +58,7 @@ checkvfsname(vfsname, vfslist)
}
const char **
-makevfslist(fslist)
- char *fslist;
+makevfslist(char *fslist)
{
const char **av;
int i;
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c
index 096f04a683a2..3ba67ea60eb3 100644
--- a/sbin/mount_msdosfs/mount_msdosfs.c
+++ b/sbin/mount_msdosfs/mount_msdosfs.c
@@ -229,8 +229,7 @@ main(int argc, char **argv)
}
gid_t
-a_gid(s)
- char *s;
+a_gid(char *s)
{
struct group *gr;
char *gname;
@@ -249,8 +248,7 @@ a_gid(s)
}
uid_t
-a_uid(s)
- char *s;
+a_uid(char *s)
{
struct passwd *pw;
char *uname;
@@ -269,8 +267,7 @@ a_uid(s)
}
mode_t
-a_mask(s)
- char *s;
+a_mask(char *s)
{
int done, rv;
char *ep;
@@ -287,7 +284,7 @@ a_mask(s)
}
void
-usage()
+usage(void)
{
fprintf(stderr, "%s\n%s\n%s\n",
"usage: mount_msdosfs [-9ls] [-D DOS_codepage] [-g gid] [-L locale]",
diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c
index a0ad5f681908..abca9fabe068 100644
--- a/sbin/mount_nullfs/mount_nullfs.c
+++ b/sbin/mount_nullfs/mount_nullfs.c
@@ -116,9 +116,7 @@ main(int argc, char *argv[])
}
int
-subdir(p, dir)
- const char *p;
- const char *dir;
+subdir(const char *p, const char *dir)
{
int l;
@@ -133,7 +131,7 @@ subdir(p, dir)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: mount_nullfs [-o options] target mount-point\n");
diff --git a/sbin/rcorder/ealloc.c b/sbin/rcorder/ealloc.c
index a7cf6bc4a713..997119315531 100644
--- a/sbin/rcorder/ealloc.c
+++ b/sbin/rcorder/ealloc.c
@@ -58,7 +58,7 @@ static void enomem(void);
* die when out of memory.
*/
static void
-enomem()
+enomem(void)
{
errx(2, "Cannot allocate memory.");
}
@@ -68,8 +68,7 @@ enomem()
* malloc, but die on error.
*/
void *
-emalloc(len)
- size_t len;
+emalloc(size_t len)
{
void *p;
@@ -83,8 +82,7 @@ emalloc(len)
* strdup, but die on error.
*/
char *
-estrdup(str)
- const char *str;
+estrdup(const char *str)
{
char *p;
@@ -98,9 +96,7 @@ estrdup(str)
* realloc, but die on error.
*/
void *
-erealloc(ptr, size)
- void *ptr;
- size_t size;
+erealloc(void *ptr, size_t size)
{
if ((ptr = realloc(ptr, size)) == NULL)
enomem();
@@ -112,9 +108,7 @@ erealloc(ptr, size)
* calloc, but die on error.
*/
void *
-ecalloc(nmemb, size)
- size_t nmemb;
- size_t size;
+ecalloc(size_t nmemb, size_t size)
{
void *ptr;
diff --git a/sbin/rcorder/hash.c b/sbin/rcorder/hash.c
index bc882b92d6bd..34b95ce82f7a 100644
--- a/sbin/rcorder/hash.c
+++ b/sbin/rcorder/hash.c
@@ -103,9 +103,9 @@ static void RebuildTable(Hash_Table *);
*/
void
-Hash_InitTable(t, numBuckets)
- register Hash_Table *t; /* Structure to use to hold table. */
- int numBuckets; /* How many buckets to create for starters.
+Hash_InitTable(
+ register Hash_Table *t, /* Structure to use to hold table. */
+ int numBuckets) /* How many buckets to create for starters.
* This number is rounded up to a power of
* two. If <= 0, a reasonable default is
* chosen. The table will grow in size later
@@ -150,8 +150,7 @@ Hash_InitTable(t, numBuckets)
*/
void
-Hash_DeleteTable(t)
- Hash_Table *t;
+Hash_DeleteTable(Hash_Table *t)
{
register struct Hash_Entry **hp, *h, *nexth = NULL;
register int i;
@@ -190,9 +189,9 @@ Hash_DeleteTable(t)
*/
Hash_Entry *
-Hash_FindEntry(t, key)
- Hash_Table *t; /* Hash table to search. */
- char *key; /* A hash key. */
+Hash_FindEntry(
+ Hash_Table *t, /* Hash table to search. */
+ char *key) /* A hash key. */
{
register Hash_Entry *e;
register unsigned h;
@@ -227,10 +226,10 @@ Hash_FindEntry(t, key)
*/
Hash_Entry *
-Hash_CreateEntry(t, key, newPtr)
- register Hash_Table *t; /* Hash table to search. */
- char *key; /* A hash key. */
- Boolean *newPtr; /* Filled in with TRUE if new entry created,
+Hash_CreateEntry(
+ register Hash_Table *t, /* Hash table to search. */
+ char *key, /* A hash key. */
+ Boolean *newPtr) /* Filled in with TRUE if new entry created,
* FALSE otherwise. */
{
register Hash_Entry *e;
@@ -294,9 +293,7 @@ Hash_CreateEntry(t, key, newPtr)
*/
void
-Hash_DeleteEntry(t, e)
- Hash_Table *t;
- Hash_Entry *e;
+Hash_DeleteEntry(Hash_Table *t, Hash_Entry *e)
{
register Hash_Entry **hp, *p;
@@ -335,9 +332,9 @@ Hash_DeleteEntry(t, e)
*/
Hash_Entry *
-Hash_EnumFirst(t, searchPtr)
- Hash_Table *t; /* Table to be searched. */
- register Hash_Search *searchPtr;/* Area in which to keep state
+Hash_EnumFirst(
+ Hash_Table *t, /* Table to be searched. */
+ register Hash_Search *searchPtr)/* Area in which to keep state
* about search.*/
{
searchPtr->tablePtr = t;
@@ -365,8 +362,8 @@ Hash_EnumFirst(t, searchPtr)
*/
Hash_Entry *
-Hash_EnumNext(searchPtr)
- register Hash_Search *searchPtr; /* Area used to keep state about
+Hash_EnumNext(
+ register Hash_Search *searchPtr) /* Area used to keep state about
search. */
{
register Hash_Entry *e;
@@ -411,8 +408,7 @@ Hash_EnumNext(searchPtr)
*/
static void
-RebuildTable(t)
- register Hash_Table *t;
+RebuildTable(register Hash_Table *t)
{
register Hash_Entry *e, *next = NULL, **hp, **xp;
register int i, mask;
diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c
index bf8e9fbd5c0c..9a9959b62558 100644
--- a/sbin/rcorder/rcorder.c
+++ b/sbin/rcorder/rcorder.c
@@ -153,9 +153,7 @@ void generate_ordering(void);
int main(int, char *[]);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch;
@@ -199,7 +197,7 @@ main(argc, argv)
* initialise various variables.
*/
void
-initialize()
+initialize(void)
{
fn_head = &fn_head_s;
@@ -210,10 +208,7 @@ initialize()
/* generic function to insert a new strnodelist element */
void
-strnode_add(listp, s, fnode)
- strnodelist **listp;
- char *s;
- filenode *fnode;
+strnode_add(strnodelist **listp, char *s, filenode *fnode)
{
strnodelist *ent;
@@ -235,8 +230,7 @@ strnode_add(listp, s, fnode)
* fill in the bits, and put it in the filenode linked list
*/
filenode *
-filenode_new(filename)
- char *filename;
+filenode_new(char *filename)
{
filenode *temp;
@@ -264,9 +258,7 @@ filenode_new(filename)
* add a requirement to a filenode.
*/
void
-add_require(fnode, s)
- filenode *fnode;
- char *s;
+add_require(filenode *fnode, char *s)
{
Hash_Entry *entry;
f_reqnode *rnode;
@@ -286,9 +278,7 @@ add_require(fnode, s)
* have a head node, create one here.
*/
void
-add_provide(fnode, s)
- filenode *fnode;
- char *s;
+add_provide(filenode *fnode, char *s)
{
Hash_Entry *entry;
f_provnode *f_pnode;
@@ -367,9 +357,7 @@ add_provide(fnode, s)
* put the BEFORE: lines to a list and handle them later.
*/
void
-add_before(fnode, s)
- filenode *fnode;
- char *s;
+add_before(filenode *fnode, char *s)
{
strnodelist *bf_ent;
@@ -384,9 +372,7 @@ add_before(fnode, s)
* add a key to a filenode.
*/
void
-add_keyword(fnode, s)
- filenode *fnode;
- char *s;
+add_keyword(filenode *fnode, char *s)
{
strnode_add(&fnode->keyword_list, s, fnode);
@@ -397,9 +383,7 @@ add_keyword(fnode, s)
* add_require() to do the real work.
*/
void
-parse_require(node, buffer)
- filenode *node;
- char *buffer;
+parse_require(filenode *node, char *buffer)
{
char *s;
@@ -413,9 +397,7 @@ parse_require(node, buffer)
* add_provide() to do the real work.
*/
void
-parse_provide(node, buffer)
- filenode *node;
- char *buffer;
+parse_provide(filenode *node, char *buffer)
{
char *s;
@@ -429,9 +411,7 @@ parse_provide(node, buffer)
* add_before() to do the real work.
*/
void
-parse_before(node, buffer)
- filenode *node;
- char *buffer;
+parse_before(filenode *node, char *buffer)
{
char *s;
@@ -445,9 +425,7 @@ parse_before(node, buffer)
* add_keyword() to do the real work.
*/
void
-parse_keywords(node, buffer)
- filenode *node;
- char *buffer;
+parse_keywords(filenode *node, char *buffer)
{
char *s;
@@ -461,8 +439,7 @@ parse_keywords(node, buffer)
* for provision and requirement lines, building the graphs as needed.
*/
void
-crunch_file(filename)
- char *filename;
+crunch_file(char *filename)
{
FILE *fp;
char *buf;
@@ -534,8 +511,7 @@ crunch_file(filename)
}
Hash_Entry *
-make_fake_provision(node)
- filenode *node;
+make_fake_provision(filenode *node)
{
Hash_Entry *entry;
f_provnode *f_pnode;
@@ -581,7 +557,7 @@ make_fake_provision(node)
* that provisions filenode for P.
*/
void
-insert_before()
+insert_before(void)
{
Hash_Entry *entry, *fake_prov_entry;
provnode *pnode;
@@ -619,7 +595,7 @@ insert_before()
* lines into graph(s).
*/
void
-crunch_all_files()
+crunch_all_files(void)
{
int i;
@@ -644,9 +620,7 @@ crunch_all_files()
* provision.
*/
void
-satisfy_req(rnode, filename)
- f_reqnode *rnode;
- char *filename;
+satisfy_req(f_reqnode *rnode, char *filename)
{
Hash_Entry *entry;
provnode *head;
@@ -687,8 +661,7 @@ satisfy_req(rnode, filename)
}
int
-skip_ok(fnode)
- filenode *fnode;
+skip_ok(filenode *fnode)
{
strnodelist *s;
strnodelist *k;
@@ -702,8 +675,7 @@ skip_ok(fnode)
}
int
-keep_ok(fnode)
- filenode *fnode;
+keep_ok(filenode *fnode)
{
strnodelist *s;
strnodelist *k;
@@ -728,8 +700,7 @@ keep_ok(fnode)
* Circular dependancies will cause problems if we do.
*/
void
-do_file(fnode)
- filenode *fnode;
+do_file(filenode *fnode)
{
f_reqnode *r, *r_tmp;
f_provnode *p, *p_tmp;
@@ -812,7 +783,7 @@ do_file(fnode)
}
void
-generate_ordering()
+generate_ordering(void)
{
/*
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index c11d24f8bab7..5d8ad3d3485e 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -770,7 +770,7 @@ done: *argvp = argv + 1;
/* Finish any pending -exec ... {} + functions. */
void
-finish_execplus()
+finish_execplus(void)
{
PLAN *p;
diff --git a/usr.bin/gencat/gencat.c b/usr.bin/gencat/gencat.c
index 8f1d4a5129d5..ffee912cc05a 100644
--- a/usr.bin/gencat/gencat.c
+++ b/usr.bin/gencat/gencat.c
@@ -130,7 +130,7 @@ void usage(void);
int main(int, char **);
void
-usage()
+usage(void)
{
fprintf(stderr, "usage: %s catfile msgfile ...\n", getprogname());
exit(1);
diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l
index eeed535db2c6..34ff62724d02 100644
--- a/usr.bin/mklocale/lex.l
+++ b/usr.bin/mklocale/lex.l
@@ -170,7 +170,7 @@ ENCODING { return(ENCODING); }
#if !defined(yywrap)
int
-yywrap()
+yywrap(void)
{
return(1);
}
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 344af220cf6b..b86ab889a36e 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -266,22 +266,20 @@ main(int ac, char *av[])
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: mklocale [-d] [-o output] [source]\n");
exit(1);
}
void
-yyerror(s)
- const char *s;
+yyerror(const char *s)
{
fprintf(stderr, "%s\n", s);
}
static void *
-xmalloc(sz)
- unsigned int sz;
+xmalloc(unsigned int sz)
{
void *r = malloc(sz);
if (!r)
@@ -290,8 +288,7 @@ xmalloc(sz)
}
static uint32_t *
-xlalloc(sz)
- unsigned int sz;
+xlalloc(unsigned int sz)
{
uint32_t *r = (uint32_t *)malloc(sz * sizeof(uint32_t));
if (!r)
@@ -300,9 +297,7 @@ xlalloc(sz)
}
static uint32_t *
-xrelalloc(old, sz)
- uint32_t *old;
- unsigned int sz;
+xrelalloc(uint32_t *old, unsigned int sz)
{
uint32_t *r = (uint32_t *)realloc((char *)old,
sz * sizeof(uint32_t));
@@ -312,10 +307,7 @@ xrelalloc(old, sz)
}
void
-set_map(map, list, flag)
- rune_map *map;
- rune_list *list;
- uint32_t flag;
+set_map(rune_map *map, rune_list *list, uint32_t flag)
{
while (list) {
rune_list *nlist = list->next;
@@ -325,9 +317,7 @@ set_map(map, list, flag)
}
void
-set_digitmap(map, list)
- rune_map *map;
- rune_list *list;
+set_digitmap(rune_map *map, rune_list *list)
{
int32_t i;
@@ -347,10 +337,7 @@ set_digitmap(map, list)
}
void
-add_map(map, list, flag)
- rune_map *map;
- rune_list *list;
- uint32_t flag;
+add_map(rune_map *map, rune_list *list, uint32_t flag)
{
int32_t i;
rune_list *lr = 0;
@@ -555,7 +542,7 @@ add_map(map, list, flag)
}
static void
-dump_tables()
+dump_tables(void)
{
int x, first_d, curr_d;
rune_list *list;
diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l
index 075f21f4dfc1..c7845cb0416d 100644
--- a/usr.sbin/config/lang.l
+++ b/usr.sbin/config/lang.l
@@ -285,7 +285,7 @@ include(const char *fname, int ateof)
* Terminate the most recent inclusion.
*/
static int
-endinclude()
+endinclude(void)
{
struct incl *in;
int ateof;
diff --git a/usr.sbin/cpucontrol/cpucontrol.c b/usr.sbin/cpucontrol/cpucontrol.c
index b0ef9a3700af..71930801da9a 100644
--- a/usr.sbin/cpucontrol/cpucontrol.c
+++ b/usr.sbin/cpucontrol/cpucontrol.c
@@ -102,7 +102,7 @@ static int do_update(const char *dev);
static void datadir_add(const char *path);
static void __dead2
-usage()
+usage(void)
{
const char *name;
diff --git a/usr.sbin/eeprom/eeprom.c b/usr.sbin/eeprom/eeprom.c
index ecd9267a0337..64018585bc7a 100644
--- a/usr.sbin/eeprom/eeprom.c
+++ b/usr.sbin/eeprom/eeprom.c
@@ -146,7 +146,7 @@ action(char *line)
}
static void
-dump_config()
+dump_config(void)
{
ofwo_dump();
diff --git a/usr.sbin/fifolog/lib/getdate.y b/usr.sbin/fifolog/lib/getdate.y
index 93b5b6b4ed93..8e63e8112993 100644
--- a/usr.sbin/fifolog/lib/getdate.y
+++ b/usr.sbin/fifolog/lib/getdate.y
@@ -762,7 +762,7 @@ LookupWord(char *buff)
static int
-yylex()
+yylex(void)
{
char c;
char *p;
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index ef9049f8c7d6..d0a9b4da51a1 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -49,9 +49,7 @@ static void output(struct ulog_utmpx *);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch, i;
struct ulog_utmpx *u;
@@ -102,7 +100,7 @@ output(struct ulog_utmpx *u)
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: lastlogin [user ...]\n");
exit(1);
diff --git a/usr.sbin/nfsd/nfsd.c b/usr.sbin/nfsd/nfsd.c
index a822eb3133ff..d86309f4e1bb 100644
--- a/usr.sbin/nfsd/nfsd.c
+++ b/usr.sbin/nfsd/nfsd.c
@@ -842,7 +842,7 @@ setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: nfsd %s\n", USAGE);
exit(1);
@@ -868,7 +868,7 @@ reapchild(__unused int signo)
}
void
-unregistration()
+unregistration(void)
{
if ((!rpcb_unset(NFS_PROGRAM, 2, NULL)) ||
(!rpcb_unset(NFS_PROGRAM, 3, NULL)))
@@ -876,7 +876,7 @@ unregistration()
}
void
-killchildren()
+killchildren(void)
{
int i;
diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c
index 1a5dec2b6d13..1f39f257f072 100644
--- a/usr.sbin/pmcannotate/pmcannotate.c
+++ b/usr.sbin/pmcannotate/pmcannotate.c
@@ -325,7 +325,7 @@ fqueue_compact(float th)
* Flush the first-level aggregates queue.
*/
static void
-fqueue_deleteall()
+fqueue_deleteall(void)
{
struct aggent *agg;
@@ -472,7 +472,7 @@ fqueue_insertgen(void)
* Flush the raw entries general queue.
*/
static void
-general_deleteall()
+general_deleteall(void)
{
struct entry *obj;
diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c
index e1b2a55a41bb..59ac1caaf692 100644
--- a/usr.sbin/powerd/powerd.c
+++ b/usr.sbin/powerd/powerd.c
@@ -259,7 +259,7 @@ get_freq_id(int freq, int *freqs, int numfreqs)
* to APM. If nothing succeeds, we'll just run in default mode.
*/
static void
-acline_init()
+acline_init(void)
{
acline_mib_len = 4;
diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c
index 7be13e549915..64736ac340cf 100644
--- a/usr.sbin/sa/main.c
+++ b/usr.sbin/sa/main.c
@@ -300,7 +300,7 @@ main(int argc, char **argv)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: sa [-abcdDfijkKlmnqrstu] [-P file] [-U file] [-v cutoff] [file ...]\n");
diff --git a/usr.sbin/sa/pdb.c b/usr.sbin/sa/pdb.c
index 38beb558f705..e5e35f5db834 100644
--- a/usr.sbin/sa/pdb.c
+++ b/usr.sbin/sa/pdb.c
@@ -94,14 +94,14 @@ v1_to_v2(DBT *key __unused, DBT *data)
/* Copy pdb_file to in-memory pacct_db. */
int
-pacct_init()
+pacct_init(void)
{
return (db_copy_in(&pacct_db, pdb_file, "process accounting",
NULL, v1_to_v2));
}
void
-pacct_destroy()
+pacct_destroy(void)
{
db_destroy(pacct_db, "process accounting");
}
@@ -150,14 +150,14 @@ pacct_add(const struct cmdinfo *ci)
/* Copy in-memory pacct_db to pdb_file. */
int
-pacct_update()
+pacct_update(void)
{
return (db_copy_out(pacct_db, pdb_file, "process accounting",
NULL));
}
void
-pacct_print()
+pacct_print(void)
{
BTREEINFO bti;
DBT key, data, ndata;
diff --git a/usr.sbin/sa/usrdb.c b/usr.sbin/sa/usrdb.c
index 07a5033c398a..50778ef50470 100644
--- a/usr.sbin/sa/usrdb.c
+++ b/usr.sbin/sa/usrdb.c
@@ -97,7 +97,7 @@ v1_to_v2(DBT *key, DBT *data)
/* Copy usrdb_file to in-memory usracct_db. */
int
-usracct_init()
+usracct_init(void)
{
BTREEINFO bti;
@@ -109,7 +109,7 @@ usracct_init()
}
void
-usracct_destroy()
+usracct_destroy(void)
{
db_destroy(usracct_db, "user accounting");
}
@@ -166,7 +166,7 @@ usracct_add(const struct cmdinfo *ci)
/* Copy in-memory usracct_db to usrdb_file. */
int
-usracct_update()
+usracct_update(void)
{
BTREEINFO bti;
@@ -178,7 +178,7 @@ usracct_update()
}
void
-usracct_print()
+usracct_print(void)
{
DBT key, data;
struct userinfo uistore, *ui = &uistore;
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index ec010cb56266..073affd71c2a 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -149,7 +149,7 @@ sighandler(int signum)
* Open the watchdog device.
*/
static int
-watchdog_init()
+watchdog_init(void)
{
fd = open("/dev/" _PATH_WATCHDOG, O_RDWR);
@@ -220,7 +220,7 @@ watchdog_onoff(int onoff)
* Tell user how to use the program.
*/
static void
-usage()
+usage(void)
{
if (is_daemon)
fprintf(stderr, "usage: watchdogd [-d] [-e cmd] [-I file] [-s sleep] [-t timeout]\n");