From owner-svn-src-head@freebsd.org Tue Sep 1 07:33:37 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D00369C87C8; Tue, 1 Sep 2015 07:33:37 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C12ADFF8; Tue, 1 Sep 2015 07:33:37 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t817XbwB063937; Tue, 1 Sep 2015 07:33:37 GMT (envelope-from rodrigc@FreeBSD.org) Received: (from rodrigc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t817Xbfo063936; Tue, 1 Sep 2015 07:33:37 GMT (envelope-from rodrigc@FreeBSD.org) Message-Id: <201509010733.t817Xbfo063936@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigc set sender to rodrigc@FreeBSD.org using -f From: Craig Rodrigues Date: Tue, 1 Sep 2015 07:33:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287348 - head/lib/libc/rpc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2015 07:33:37 -0000 Author: rodrigc Date: Tue Sep 1 07:33:36 2015 New Revision: 287348 URL: https://svnweb.freebsd.org/changeset/base/287348 Log: Use correct function prototype for signal handler. Eliminates gcc 4.9 warning. Modified: head/lib/libc/rpc/auth_time.c Modified: head/lib/libc/rpc/auth_time.c ============================================================================== --- head/lib/libc/rpc/auth_time.c Tue Sep 1 07:32:03 2015 (r287347) +++ head/lib/libc/rpc/auth_time.c Tue Sep 1 07:33:36 2015 (r287348) @@ -255,7 +255,7 @@ __rpc_get_time_offset(struct timeval *td 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 } 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));