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

Diff for /src/usr.bin/time/time.c between version 1.23 and 1.24

version 1.23, 2017/07/22 16:20:10 version 1.24, 2017/07/22 17:01:09
Line 42 
Line 42 
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  #include <unistd.h>
   
 int lflag;  
 int portableflag;  
   
 __dead void usage(void);  __dead void usage(void);
   
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         pid_t pid;  
         int ch, status;  
         struct timespec before, after, during;  
         struct rusage ru;          struct rusage ru;
         int exitonsig = 0;          struct timespec before, after, during;
           int ch, exitonsig, lflag, portableflag, status;
           pid_t pid;
   
         if (pledge("stdio proc exec", NULL) == -1)          if (pledge("stdio proc exec", NULL) == -1)
                 err(1, "pledge");                  err(1, "pledge");
   
           exitonsig = lflag = portableflag = 0;
   
         while ((ch = getopt(argc, argv, "lp")) != -1) {          while ((ch = getopt(argc, argv, "lp")) != -1) {
                 switch(ch) {                  switch(ch) {

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24