Return to function.c CVS log | Up to [local] / src / usr.bin / find |
version 1.31, 2005/06/15 14:19:45 | version 1.32, 2009/08/27 16:19:27 | ||
---|---|---|---|
|
|
||
c_maxdepth(char *arg, char ***ignored, int unused) | c_maxdepth(char *arg, char ***ignored, int unused) | ||
{ | { | ||
PLAN *new; | PLAN *new; | ||
const char *errstr = NULL; | |||
new = palloc(N_MAXDEPTH, f_maxdepth); | new = palloc(N_MAXDEPTH, f_maxdepth); | ||
new->max_data = atoi(arg); | new->max_data = strtonum(arg, 1, FTS_MAXLEVEL, &errstr); | ||
if (errstr) | |||
errx(1, "%s: maxdepth value %s", arg, errstr); | |||
return (new); | return (new); | ||
} | } | ||