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

Diff for /src/usr.bin/du/du.c between version 1.18 and 1.19

version 1.18, 2005/04/17 12:27:23 version 1.19, 2006/01/25 06:20:03
Line 34 
Line 34 
  */   */
   
 #ifndef lint  #ifndef lint
 static char copyright[] =  static const char copyright[] =
 "@(#) Copyright (c) 1989, 1993, 1994\n\  "@(#) Copyright (c) 1989, 1993, 1994\n\
         The Regents of the University of California.  All rights reserved.\n";          The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */  #endif /* not lint */
Line 43 
Line 43 
 #if 0  #if 0
 static char sccsid[] = "@(#)du.c        8.5 (Berkeley) 5/4/95";  static char sccsid[] = "@(#)du.c        8.5 (Berkeley) 5/4/95";
 #else  #else
 static char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 74 
Line 74 
         long blocksize;          long blocksize;
         quad_t totalblocks;          quad_t totalblocks;
         int ftsoptions, listdirs, listfiles;          int ftsoptions, listdirs, listfiles;
         int Hflag, Lflag, Pflag, aflag, cflag, hflag, kflag, sflag;          int Hflag, Lflag, aflag, cflag, hflag, kflag, sflag;
         int ch, notused, rval;          int ch, notused, rval;
         char **save;          char **save;
   
         save = argv;          save = argv;
         Hflag = Lflag = Pflag = aflag = cflag = hflag = kflag = sflag = 0;          Hflag = Lflag = aflag = cflag = hflag = kflag = sflag = 0;
         totalblocks = 0;          totalblocks = 0;
         ftsoptions = FTS_PHYSICAL;          ftsoptions = FTS_PHYSICAL;
         while ((ch = getopt(argc, argv, "HLPachksxr")) != -1)          while ((ch = getopt(argc, argv, "HLPachksxr")) != -1)
                 switch (ch) {                  switch (ch) {
                 case 'H':                  case 'H':
                         Hflag = 1;                          Hflag = 1;
                         Lflag = Pflag = 0;                          Lflag = 0;
                         break;                          break;
                 case 'L':                  case 'L':
                         Lflag = 1;                          Lflag = 1;
                         Hflag = Pflag = 0;                          Hflag = 0;
                         break;                          break;
                 case 'P':                  case 'P':
                         Pflag = 1;  
                         Hflag = Lflag = 0;                          Hflag = Lflag = 0;
                         break;                          break;
                 case 'a':                  case 'a':

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19