Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so

remove the unneeded +1.
This commit is contained in:
imp 2003-08-07 05:38:56 +00:00
parent 5dab8f4ced
commit 72cdd135e5
3 changed files with 5 additions and 5 deletions

View File

@ -97,8 +97,8 @@ union dinode {
struct quotaname {
long flags;
char grpqfname[MAXPATHLEN + 1];
char usrqfname[MAXPATHLEN + 1];
char grpqfname[PATH_MAX];
char usrqfname[PATH_MAX];
};
#define HASUSR 1
#define HASGRP 2

View File

@ -499,7 +499,7 @@ extern int tracelevel, new_tracelevel;
#define TRACEPACKETS (tracelevel >= 2) /* note packets */
#define TRACEACTIONS (tracelevel != 0)
extern FILE *ftrace; /* output trace file */
extern char inittracename[MAXPATHLEN+1];
extern char inittracename[PATH_MAX];
extern struct radix_node_head *rhead;

View File

@ -58,8 +58,8 @@ __RCSID("$NetBSD$");
int tracelevel, new_tracelevel;
FILE *ftrace; /* output trace file */
static const char *sigtrace_pat = "%s";
static char savetracename[MAXPATHLEN+1];
char inittracename[MAXPATHLEN+1];
static char savetracename[PATH_MAX];
char inittracename[PATH_MAX];
int file_trace; /* 1=tracing to file, not stdout */
static void trace_dump(void);