summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-04-08 20:16:05 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-04-08 20:16:05 +0000
commit1c03d6c750eea685644f643615d701b3ee2d5689 (patch)
tree95579a196fb18e5521cf55e202afc08dc0b66697 /sbin/dhclient/dhclient.c
parent38f4119c070af694b3f971e06bd658f17ba5aa53 (diff)
Reduce the overburden of signed vs unsigned comparisons by sprinkling
'int' -> 'unsigned int' (and visa versa) where obvious. Steal a couple of 'unsigned' -> u_int32_t from reyk@'s dhcrelay tweaks. No intentional functional change.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index b00745de022..fa9c077221d 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.409 2017/04/08 17:00:10 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.410 2017/04/08 20:16:04 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -2276,7 +2276,8 @@ get_ifname(struct interface_info *ifi, char *arg)
{
struct ifgroupreq ifgr;
struct ifg_req *ifg;
- int s, len;
+ unsigned int len;
+ int s;
if (strcmp(arg, "egress") == 0) {
s = socket(AF_INET, SOCK_DGRAM, 0);
@@ -2867,7 +2868,7 @@ void
add_classless_static_routes(struct option_data *opt, struct in_addr iface)
{
struct in_addr dest, netmask, gateway;
- int bits, bytes, i;
+ unsigned int i, bits, bytes;
i = 0;
while (i < opt->len) {