Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh The sig_atomic_t type is not guaranteed to b...



details:   https://anonhg.NetBSD.org/src/rev/b5a99df6311e
branches:  trunk
changeset: 588130:b5a99df6311e
user:      he <he%NetBSD.org@localhost>
date:      Wed Feb 08 23:08:13 2006 +0000

description:
The sig_atomic_t type is not guaranteed to be printf-compatible
with %d, so cast to int before printing it.

diffstat:

 crypto/dist/ssh/serverloop.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c783b048c3a2 -r b5a99df6311e crypto/dist/ssh/serverloop.c
--- a/crypto/dist/ssh/serverloop.c      Wed Feb 08 22:17:18 2006 +0000
+++ b/crypto/dist/ssh/serverloop.c      Wed Feb 08 23:08:13 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: serverloop.c,v 1.24 2006/02/04 22:32:14 christos Exp $ */
+/*     $NetBSD: serverloop.c,v 1.25 2006/02/08 23:08:13 he Exp $       */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -37,7 +37,7 @@
 
 #include "includes.h"
 RCSID("$OpenBSD: serverloop.c,v 1.124 2005/12/13 15:03:02 reyk Exp $");
-__RCSID("$NetBSD: serverloop.c,v 1.24 2006/02/04 22:32:14 christos Exp $");
+__RCSID("$NetBSD: serverloop.c,v 1.25 2006/02/08 23:08:13 he Exp $");
 
 #include "xmalloc.h"
 #include "packet.h"
@@ -646,7 +646,7 @@
                    &nalloc, max_time_milliseconds);
 
                if (received_sigterm) {
-                       logit("Exiting on signal %d", received_sigterm);
+                       logit("Exiting on signal %d", (int)received_sigterm);
                        /* Clean up sessions, utmp, etc. */
                        cleanup_exit(255);
                }
@@ -795,7 +795,7 @@
                    &nalloc, 0);
 
                if (received_sigterm) {
-                       logit("Exiting on signal %d", received_sigterm);
+                       logit("Exiting on signal %d", (int)received_sigterm);
                        /* Clean up sessions, utmp, etc. */
                        cleanup_exit(255);
                }



Home | Main Index | Thread Index | Old Index