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

Diff for /src/usr.bin/lastcomm/lastcomm.c between version 1.11 and 1.12

version 1.11, 2003/06/03 02:56:09 version 1.12, 2003/06/10 22:20:47
Line 68 
Line 68 
 char    *user_from_uid();  char    *user_from_uid();
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char *argv[];  
 {  {
         char *p;          char *p;
         struct acct ab;          struct acct ab;
Line 157 
Line 155 
 }  }
   
 time_t  time_t
 expand(t)  expand(u_int t)
         u_int t;  
 {  {
         time_t nt;          time_t nt;
   
Line 172 
Line 169 
 }  }
   
 char *  char *
 flagbits(f)  flagbits(int f)
         int f;  
 {  {
         static char flags[20] = "-";          static char flags[20] = "-";
         char *p;          char *p;
Line 191 
Line 187 
 }  }
   
 int  int
 requested(argv, acp)  requested(char *argv[], struct acct *acp)
         char *argv[];  
         struct acct *acp;  
 {  {
         do {          do {
                 if (!strcmp(user_from_uid(acp->ac_uid, 0), *argv))                  if (!strcmp(user_from_uid(acp->ac_uid, 0), *argv))
Line 207 
Line 201 
 }  }
   
 char *  char *
 getdev(dev)  getdev(dev_t dev)
         dev_t dev;  
 {  {
         static dev_t lastdev = (dev_t)-1;          static dev_t lastdev = (dev_t)-1;
         static char *lastname;          static char *lastname;
Line 224 
Line 217 
 }  }
   
 void  void
 usage()  usage(void)
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "lastcomm [ -f file ] [command ...] [user ...] [tty ...]\n");              "lastcomm [ -f file ] [command ...] [user ...] [tty ...]\n");

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12