Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ssh Deal with an LP64 printf format issue.



details:   https://anonhg.NetBSD.org/src/rev/9bce5b6a1016
branches:  trunk
changeset: 518424:9bce5b6a1016
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Nov 30 00:46:36 2001 +0000

description:
Deal with an LP64 printf format issue.

diffstat:

 crypto/dist/ssh/clientloop.c |  4 ++--
 crypto/dist/ssh/serverloop.c |  5 +++--
 crypto/dist/ssh/sshd.c       |  4 ++--
 3 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r cf4344d8ef52 -r 9bce5b6a1016 crypto/dist/ssh/clientloop.c
--- a/crypto/dist/ssh/clientloop.c      Fri Nov 30 00:12:04 2001 +0000
+++ b/crypto/dist/ssh/clientloop.c      Fri Nov 30 00:46:36 2001 +0000
@@ -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@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -950,7 +950,7 @@
        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);
        }
 
        /*
diff -r cf4344d8ef52 -r 9bce5b6a1016 crypto/dist/ssh/serverloop.c
--- a/crypto/dist/ssh/serverloop.c      Fri Nov 30 00:12:04 2001 +0000
+++ b/crypto/dist/ssh/serverloop.c      Fri Nov 30 00:46:36 2001 +0000
@@ -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@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -267,7 +267,8 @@
                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);
diff -r cf4344d8ef52 -r 9bce5b6a1016 crypto/dist/ssh/sshd.c
--- a/crypto/dist/ssh/sshd.c    Fri Nov 30 00:12:04 2001 +0000
+++ b/crypto/dist/ssh/sshd.c    Fri Nov 30 00:46:36 2001 +0000
@@ -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@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -955,7 +955,7 @@
                                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);



Home | Main Index | Thread Index | Old Index