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

Diff for /src/usr.bin/lock/lock.c between version 1.13 and 1.14

version 1.13, 2001/05/29 21:38:15 version 1.14, 2001/11/02 16:25:11
Line 223 
Line 223 
 hi(dummy)  hi(dummy)
         int dummy;          int dummy;
 {  {
           char buf[1024], buf2[1024];
         time_t now;          time_t now;
   
         (void)fprintf(stderr, "%s: type in the unlock key.", __progname);          if (no_timeout)
         if (!no_timeout) {                  buf2[0] = '\0';
           else {
                 now = time(NULL);                  now = time(NULL);
                 (void)fprintf(stderr, " timeout in %d:%d minutes",                  (void)snprintf(buf2, sizeof buf2, " timeout in %d:%d minutes",
                     (nexttime - now) / 60,                      (nexttime - now) / 60, (nexttime - now) % 60);
                     (nexttime - now) % 60);  
         }          }
         putc('\n', stderr);          snprintf(buf, sizeof buf, "%s: type in the unlock key.%s\n",
               __progname, buf2);
           (void) write(STDERR_FILENO, buf, strlen(buf));
 }  }
   
 void  void

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14