version 1.13, 2001/05/29 21:38:15 |
version 1.14, 2001/11/02 16:25:11 |
|
|
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 |