A sig_atomic_t isn't necessarily compatible with a %d printf format;

on evbsh5 sig_atomic_t is an __int64_t.  Since this only stores a
signal number, cast to int before printing.
This commit is contained in:
he 2005-02-15 16:22:12 +00:00
parent 0ed5e83fbf
commit e4afa5eb28
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ssh.c,v 1.31 2005/02/13 05:57:27 christos Exp $ */
/* $NetBSD: ssh.c,v 1.32 2005/02/15 16:22:12 he Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -42,7 +42,7 @@
#include "includes.h"
RCSID("$OpenBSD: ssh.c,v 1.224 2004/07/28 09:40:29 markus Exp $");
__RCSID("$NetBSD: ssh.c,v 1.31 2005/02/13 05:57:27 christos Exp $");
__RCSID("$NetBSD: ssh.c,v 1.32 2005/02/15 16:22:12 he Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@ -1334,7 +1334,7 @@ control_client(const char *path)
}
if (control_client_terminate)
debug2("Exiting on signal %d", control_client_terminate);
debug2("Exiting on signal %d", (int)control_client_terminate);
close(sock);