aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-01-17 22:06:55 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-01-17 22:06:55 +0000
commit52744f8f65a278a59a8903d5c594e057d63c7006 (patch)
tree9cd0ff1f2b49146b3d42c70c272ff88d215436b8 /unix.c
parent13857c648210a16448619c65e33f9918bfe27cbe (diff)
Fixing some Solaris compiler warnings (u_int->uint, adding some typecasts
for pid_t variables).
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix.c b/unix.c
index 75ffcf95..0aaf505a 100644
--- a/unix.c
+++ b/unix.c
@@ -196,9 +196,9 @@ static void sighandler( int signal )
while( ( pid = waitpid( 0, &st, WNOHANG ) ) > 0 )
{
if( WIFSIGNALED( st ) )
- log_message( LOGLVL_INFO, "Client %d terminated normally. (status = %d)", pid, WEXITSTATUS( st ) );
+ log_message( LOGLVL_INFO, "Client %d terminated normally. (status = %d)", (int) pid, WEXITSTATUS( st ) );
else if( WIFEXITED( st ) )
- log_message( LOGLVL_INFO, "Client %d killed by signal %d.", pid, WTERMSIG( st ) );
+ log_message( LOGLVL_INFO, "Client %d killed by signal %d.", (int) pid, WTERMSIG( st ) );
}
}
else if( signal != SIGPIPE )