Date: Wed, 13 Dec 2017 20:48:21 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326834 - head/sbin/dhclient Message-ID: <201712132048.vBDKmL1b062454@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Wed Dec 13 20:48:20 2017 New Revision: 326834 URL: https://svnweb.freebsd.org/changeset/base/326834 Log: dhclient(8): Don't shift through the sign bit of a signed int PR: 208007 Submitted by: Michael McConville <mmcco@mykolab.com> MFC after: 3 weeks Modified: head/sbin/dhclient/dhclient.c Modified: head/sbin/dhclient/dhclient.c ============================================================================== --- head/sbin/dhclient/dhclient.c Wed Dec 13 20:15:23 2017 (r326833) +++ head/sbin/dhclient/dhclient.c Wed Dec 13 20:48:20 2017 (r326834) @@ -150,7 +150,7 @@ int findproto(char *cp, int n) { struct sockaddr *sa; - int i; + unsigned i; if (n == 0) return -1; @@ -180,7 +180,7 @@ struct sockaddr * get_ifa(char *cp, int n) { struct sockaddr *sa; - int i; + unsigned i; if (n == 0) return (NULL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712132048.vBDKmL1b062454>