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

remove the unneeded +1.
This commit is contained in:
Warner Losh 2003-08-07 05:38:56 +00:00
parent 834a93de56
commit 534734ed17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118582
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);