diff options
author | des <des@FreeBSD.org> | 2002-02-06 15:26:07 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-06 15:26:07 +0000 |
commit | d7b064e238d98e1c9942cfb6e53c0767893310b1 (patch) | |
tree | 9c2a46d61c0b1ec2538854e870b6861acfd2ee7a /usr.sbin/yp_mkdb | |
parent | 0f2cb9b020b907000a28323fc57a82fdb7d6626d (diff) | |
download | FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.zip FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.tar.gz |
ANSIfy and remove some dead code.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/yp_mkdb')
-rw-r--r-- | usr.sbin/yp_mkdb/yp_mkdb.c | 17 |
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; |