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

Diff for /src/usr.bin/newsyslog/newsyslog.c between version 1.32 and 1.33

version 1.32, 2000/06/12 17:41:21 version 1.33, 2000/06/14 22:55:19
Line 157 
Line 157 
 int     verbose = 0;            /* Print out what's going on */  int     verbose = 0;            /* Print out what's going on */
 int     needroot = 1;           /* Root privs are necessary */  int     needroot = 1;           /* Root privs are necessary */
 int     noaction = 0;           /* Don't do anything, just show it */  int     noaction = 0;           /* Don't do anything, just show it */
 int     monitor = 0;            /* Don't do monitoring by default */  int     monitormode = 0;        /* Don't do monitoring by default */
 char    *conf = CONF;           /* Configuration file to use */  char    *conf = CONF;           /* Configuration file to use */
 time_t  timenow;  time_t  timenow;
 #define MIN_PID         4  #define MIN_PID         4
Line 280 
Line 280 
                         printf("size (Kb): %d [%d] ", size, ent->size);                          printf("size (Kb): %d [%d] ", size, ent->size);
                 if (verbose && (ent->hours > 0))                  if (verbose && (ent->hours > 0))
                         printf(" age (hr): %d [%d] ", modtime, ent->hours);                          printf(" age (hr): %d [%d] ", modtime, ent->hours);
                 if (monitor && ent->flags & CE_MONITOR)                  if (monitormode && ent->flags & CE_MONITOR)
                         domonitor(ent->log, ent->whom);                          domonitor(ent->log, ent->whom);
                 if (!monitor && (((ent->size > 0) && (size >= ent->size)) ||                  if (!monitormode && (((ent->size > 0) && (size >= ent->size)) ||
                     ((ent->hours > 0) && ((modtime >= ent->hours)                      ((ent->hours > 0) && ((modtime >= ent->hours)
                                         || (modtime < 0))))) {                                          || (modtime < 0))))) {
                         if (verbose)                          if (verbose)
Line 376 
Line 376 
                         conf = optarg;                          conf = optarg;
                         break;                          break;
                 case 'm':                  case 'm':
                         monitor++;                          monitormode++;
                         break;                          break;
                 default:                  default:
                         usage();                          usage();

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