From: Seven Du Date: Sat, 31 Dec 2016 00:53:27 +0000 (+0800) Subject: FS-7933 #comment fix incompatible time pointer X-Git-Tag: v1.8.0~953 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0248d38a28df950ab1654071e6b05b61bdb74da3;p=thirdparty%2Ffreeswitch.git FS-7933 #comment fix incompatible time pointer --- diff --git a/src/switch_apr.c b/src/switch_apr.c index 27140b90ea..f9df9e79d1 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -861,7 +861,11 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int SWITCH_DECLARE(switch_status_t) switch_socket_timeout_get(switch_socket_t *sock, switch_interval_time_t *t) { - return apr_socket_timeout_get(sock, t); + apr_interval_time_t at = 0; + switch_status_t status = apr_socket_timeout_get(sock, &at); + *t = at; + + return status; } SWITCH_DECLARE(switch_status_t) switch_socket_timeout_set(switch_socket_t *sock, switch_interval_time_t t)