Use PATH_MAX in preference to MAXPATHLEN.

Also sort declarations per style(9) (big arrays come last) while I'm
in the area.
This commit is contained in:
Warner Losh 2001-05-29 17:27:56 +00:00
parent 490cf636a9
commit c215688fd2

View File

@ -50,6 +50,7 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -160,8 +161,8 @@ linkit(target, source, isdir)
{
struct stat sb;
const char *p;
char path[MAXPATHLEN];
int ch, exists, first;
char path[PATH_MAX];
if (!sflag) {
/* If target doesn't exist, quit now. */