mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-27 14:44:21 +08:00
- dtucker@cvs.openbsd.org 2012/12/07 01:51:35
[serverloop.c] Cast signal to int for logging. A no-op on openbsd (they're always ints) but will prevent warnings in portable. ok djm@
This commit is contained in:
parent
8a96522482
commit
3e1027cd1f
@ -15,6 +15,10 @@
|
||||
- markus@cvs.openbsd.org 2012/12/05 15:42:52
|
||||
[ssh-add.c]
|
||||
prevent double-free of comment; ok djm@
|
||||
- dtucker@cvs.openbsd.org 2012/12/07 01:51:35
|
||||
[serverloop.c]
|
||||
Cast signal to int for logging. A no-op on openbsd (they're always ints)
|
||||
but will prevent warnings in portable. ok djm@
|
||||
|
||||
20121205
|
||||
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: serverloop.c,v 1.163 2012/12/02 20:46:11 djm Exp $ */
|
||||
/* $OpenBSD: serverloop.c,v 1.164 2012/12/07 01:51:35 dtucker Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
@ -708,7 +708,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);
|
||||
}
|
||||
@ -858,7 +858,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user