and use limits.h instead of sys/param.h.
-/* $OpenBSD: atrun.c,v 1.22 2015/01/14 17:27:51 millert Exp $ */
+/* $OpenBSD: atrun.c,v 1.23 2015/01/14 17:30:53 millert Exp $ */
/*
* Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com>
size_t bytes = 0;
int status = 0;
char mailcmd[MAX_COMMAND];
- char hostname[MAXHOSTNAMELEN];
+ char hostname[HOST_NAME_MAX + 1];
Debug(DPROC|DEXT, ("[%ld] got data from grandchild\n",
(long)getpid()))
-/* $OpenBSD: database.c,v 1.20 2015/01/14 17:27:29 millert Exp $ */
+/* $OpenBSD: database.c,v 1.21 2015/01/14 17:30:53 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
}
while (NULL != (dp = readdir(dir))) {
- char fname[MAXNAMLEN+1], tabname[MAXNAMLEN];
+ char fname[NAME_MAX+1], tabname[MAX_FNAME];
/* avoid file names beginning with ".". this is good
* because we would otherwise waste two guaranteed calls
-/* $OpenBSD: do_command.c,v 1.40 2015/01/14 17:27:51 millert Exp $ */
+/* $OpenBSD: do_command.c,v 1.41 2015/01/14 17:30:53 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
if (mailto) {
char **env;
char mailcmd[MAX_COMMAND];
- char hostname[MAXHOSTNAMELEN];
+ char hostname[HOST_NAME_MAX + 1];
gethostname(hostname, sizeof(hostname));
if (snprintf(mailcmd, sizeof mailcmd, MAILFMT,
-/* $OpenBSD: externs.h,v 1.14 2015/01/14 17:27:30 millert Exp $ */
+/* $OpenBSD: externs.h,v 1.15 2015/01/14 17:30:53 millert Exp $ */
/* Copyright 1993,1994 by Paul Vixie
* All rights reserved
/* reorder these #include's at your peril */
-#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
+#include <limits.h>
#include <locale.h>
#include <pwd.h>
#include <signal.h>
-/* $OpenBSD: macros.h,v 1.8 2013/11/23 18:06:49 deraadt Exp $ */
+/* $OpenBSD: macros.h,v 1.9 2015/01/14 17:30:53 millert Exp $ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
#define PPC_NULL ((const char **)NULL)
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
-#endif
-
#define Skip_Blanks(c, f) \
while (c == '\t' || c == ' ') \
c = get_char(f);