mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
b797f66c80
commit
5f28c51db6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326834
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue