summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yp_mkdb
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/yp_mkdb')
-rw-r--r--usr.sbin/yp_mkdb/yp_mkdb.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/usr.sbin/yp_mkdb/yp_mkdb.c b/usr.sbin/yp_mkdb/yp_mkdb.c
index 6f0d71b..e37cf35 100644
--- a/usr.sbin/yp_mkdb/yp_mkdb.c
+++ b/usr.sbin/yp_mkdb/yp_mkdb.c
@@ -55,7 +55,8 @@ char *yp_dir = ""; /* No particular default needed. */
int _rpcpmstart = 0;
int debug = 1;
-static void usage()
+static void
+usage(void)
{
fprintf(stderr, "%s\n%s\n%s\n%s\n",
"usage: yp_mkdb -c",
@@ -67,17 +68,16 @@ static void usage()
#define PERM_SECURE (S_IRUSR|S_IWUSR)
-static DB *open_db(path, flags)
- char *path;
- int flags;
+static DB *
+open_db(char *path, int flags)
{
extern HASHINFO openinfo;
return(dbopen(path, flags, PERM_SECURE, DB_HASH, &openinfo));
}
-static void unwind(map)
- char *map;
+static void
+unwind(char *map)
{
DB *dbp;
DBT key, data;
@@ -95,9 +95,8 @@ static void unwind(map)
return;
}
-int main (argc, argv)
- int argc;
- char *argv[];
+int
+main(int argc, char *argv[])
{
int ch;
int un = 0;
OpenPOWER on IntegriCloud