mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so
remove the unneeded +1.
This commit is contained in:
parent
834a93de56
commit
534734ed17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118582
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue