From e245f4810947d84cf82795261f195319f36b4769 Mon Sep 17 00:00:00 2001 From: he Date: Wed, 8 Feb 2006 23:08:13 +0000 Subject: [PATCH] The sig_atomic_t type is not guaranteed to be printf-compatible with %d, so cast to int before printing it. --- crypto/dist/ssh/serverloop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/dist/ssh/serverloop.c b/crypto/dist/ssh/serverloop.c index 06562568200f..dc1a7395c63f 100644 --- a/crypto/dist/ssh/serverloop.c +++ b/crypto/dist/ssh/serverloop.c @@ -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 * Copyright (c) 1995 Tatu Ylonen , 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 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg) &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 @@ server_loop2(Authctxt *authctxt) &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); }