-/* $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
*/
#include <sys/types.h>
-#include <sys/param.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stddef.h>
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;
static void
cleanup(void)
{
- char buf[MAXPATHLEN];
+ char buf[PATH_MAX];
(void) snprintf(buf, sizeof(buf), "%s.tmp", dbname);
(void) unlink(buf);