[BACK]Return to function.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / find

Diff for /src/usr.bin/find/function.c between version 1.31 and 1.32

version 1.31, 2005/06/15 14:19:45 version 1.32, 2009/08/27 16:19:27
Line 833 
Line 833 
 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);
 }  }
   

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32