diff options
author | deraadt <deraadt@openbsd.org> | 2015-01-16 15:40:16 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-01-16 15:40:16 +0000 |
commit | 31dfe9056e7445b0a1be4727872dc258117bed15 (patch) | |
tree | ce34b9a0758c80c03d78be7896c435d83e17ef77 /usr.sbin/netgroup_mkdb | |
parent | Arguments are just ".Ar", not ".Brq Ar" or even ".Ns { Ns Ar ... Ns }". (diff) | |
download | wireguard-openbsd-31dfe9056e7445b0a1be4727872dc258117bed15.tar.xz wireguard-openbsd-31dfe9056e7445b0a1be4727872dc258117bed15.zip |
Move from <sys/param.h>. (The binary change is due to a line number
passed to assert, found by doug)
ok millert
Diffstat (limited to 'usr.sbin/netgroup_mkdb')
-rw-r--r-- | usr.sbin/netgroup_mkdb/netgroup_mkdb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c index fad0746e4a9..88ae7edde5a 100644 --- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c +++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netgroup_mkdb.c,v 1.16 2012/03/04 04:05:15 fgsch Exp $ */ +/* $OpenBSD: netgroup_mkdb.c,v 1.17 2015/01/16 15:40:16 deraadt Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -32,7 +32,6 @@ */ #include <sys/types.h> -#include <sys/param.h> #include <sys/stat.h> #include <stdlib.h> #include <stddef.h> @@ -95,7 +94,7 @@ static char *dbname = _PATH_NETGROUP_DB; int main(int argc, char *argv[]) { - char buf[MAXPATHLEN], *fname = _PATH_NETGROUP; + char buf[PATH_MAX], *fname = _PATH_NETGROUP; DB *db, *ndb, *hdb, *udb; int ch; @@ -181,7 +180,7 @@ main(int argc, char *argv[]) static void cleanup(void) { - char buf[MAXPATHLEN]; + char buf[PATH_MAX]; (void) snprintf(buf, sizeof(buf), "%s.tmp", dbname); (void) unlink(buf); |