Deal with an LP64 printf format issue.

This commit is contained in:
thorpej 2001-11-30 00:46:36 +00:00
parent eaf8d9021b
commit cce3152281
3 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: clientloop.c,v 1.13 2001/11/27 04:10:23 itojun Exp $ */
/* $NetBSD: clientloop.c,v 1.14 2001/11/30 00:46:36 thorpej Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -950,7 +950,7 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
if (received_signal) {
if (in_non_blocking_mode) /* XXX */
leave_non_blocking();
fatal("Killed by signal %d.", received_signal);
fatal("Killed by signal %d.", (int) received_signal);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: serverloop.c,v 1.13 2001/11/27 04:10:24 itojun Exp $ */
/* $NetBSD: serverloop.c,v 1.14 2001/11/30 00:48:25 thorpej Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -267,7 +267,8 @@ wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, int *maxfdp,
tvp = &tv;
}
if (tvp!=NULL)
debug3("tvp!=NULL kid %d mili %d", child_terminated, max_time_milliseconds);
debug3("tvp!=NULL kid %d mili %d", (int) child_terminated,
max_time_milliseconds);
/* Wait for something to happen, or the timeout to expire. */
ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sshd.c,v 1.15 2001/11/27 04:10:26 itojun Exp $ */
/* $NetBSD: sshd.c,v 1.16 2001/11/30 00:48:25 thorpej Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -955,7 +955,7 @@ main(int ac, char **av)
error("select: %.100s", strerror(errno));
if (received_sigterm) {
log("Received signal %d; terminating.",
received_sigterm);
(int) received_sigterm);
close_listen_socks();
unlink(options.pid_file);
exit(255);