diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-01 07:33:36 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-01 07:33:36 +0000 |
commit | 665c43e2cb89223a9b10238d7a7e91c57ffebdbd (patch) | |
tree | 637b2016525f31b56f05ed99bfd55f81485a2cff /lib/libc | |
parent | db950df2a7e6cd13aa20481c68b00f82698909dc (diff) | |
download | FreeBSD-src-665c43e2cb89223a9b10238d7a7e91c57ffebdbd.zip FreeBSD-src-665c43e2cb89223a9b10238d7a7e91c57ffebdbd.tar.gz |
Use correct function prototype for signal handler.
Eliminates gcc 4.9 warning.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/rpc/auth_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/auth_time.c b/lib/libc/rpc/auth_time.c index 4eafbbb..4b71446 100644 --- a/lib/libc/rpc/auth_time.c +++ b/lib/libc/rpc/auth_time.c @@ -255,7 +255,7 @@ __rpc_get_time_offset(struct timeval *td, nis_server *srv, char *thost, char ut[64], ipuaddr[64]; endpoint teps[32]; nis_server tsrv; - void (*oldsig)() = NULL; /* old alarm handler */ + void (*oldsig)(int) = NULL; /* old alarm handler */ struct sockaddr_in sin; socklen_t len; int s = RPC_ANYSOCK; @@ -424,7 +424,7 @@ __rpc_get_time_offset(struct timeval *td, nis_server *srv, char *thost, } else { int res; - oldsig = (void (*)())signal(SIGALRM, alarm_hndler); + oldsig = (void (*)(int))signal(SIGALRM, alarm_hndler); saw_alarm = 0; /* global tracking the alarm */ alarm(20); /* only wait 20 seconds */ res = _connect(s, (struct sockaddr *)&sin, sizeof(sin)); |