Date: Mon, 25 Jun 2018 11:44:53 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335637 - head/usr.bin/rup Message-ID: <201806251144.w5PBirl1033395@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Jun 25 11:44:53 2018 New Revision: 335637 URL: https://svnweb.freebsd.org/changeset/base/335637 Log: rup: compile with WARNS=6 Modified: head/usr.bin/rup/Makefile head/usr.bin/rup/rup.c Modified: head/usr.bin/rup/Makefile ============================================================================== --- head/usr.bin/rup/Makefile Mon Jun 25 11:44:41 2018 (r335636) +++ head/usr.bin/rup/Makefile Mon Jun 25 11:44:53 2018 (r335637) @@ -2,7 +2,8 @@ PROG= rup -WARNS?= 3 LIBADD= rpcsvc + +NO_WCAST_ALIGN= # Size is explicitly handled .include <bsd.prog.mk> Modified: head/usr.bin/rup/rup.c ============================================================================== --- head/usr.bin/rup/rup.c Mon Jun 25 11:44:41 2018 (r335636) +++ head/usr.bin/rup/rup.c Mon Jun 25 11:44:53 2018 (r335637) @@ -60,7 +60,7 @@ __FBSDID("$FreeBSD$"); #define HOST_WIDTH 15 -struct host_list { +static struct host_list { struct host_list *next; struct in_addr addr; } *hosts; @@ -93,7 +93,7 @@ remember_host(struct in_addr addr) } static bool_t -rstat_reply(caddr_t replyp, struct sockaddr_in *raddrp) +rstat_reply(statstime *host_stat, struct sockaddr_in *raddrp) { struct tm *tmp_time; struct tm host_time; @@ -102,7 +102,6 @@ rstat_reply(caddr_t replyp, struct sockaddr_in *raddrp char hours_buf[16]; struct hostent *hp; char *host; - statstime *host_stat = (statstime *)replyp; time_t tmp_time_t; if (search_host(raddrp->sin_addr)) @@ -207,7 +206,7 @@ onehost(char *host) } addr.sin_addr.s_addr = *(int *)hp->h_addr; - rstat_reply((caddr_t)&host_stat, &addr); + rstat_reply(&host_stat, &addr); clnt_destroy(rstat_clnt); return (0); } @@ -242,7 +241,6 @@ main(int argc, char *argv[]) switch (ch) { default: usage(); - /*NOTREACHED*/ } setlinebuf(stdout);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806251144.w5PBirl1033395>