From 9239fd1ec121fc6c6eda49ef5c2dab081a026785 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 18 Oct 2013 10:07:06 +0800 Subject: lib/types: use unsigned int for interface, dns and prio counts Signed-off-by: Jeremy Kerr --- discover/network.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'discover/network.c') diff --git a/discover/network.c b/discover/network.c index 87075fc..0490be9 100644 --- a/discover/network.c +++ b/discover/network.c @@ -69,7 +69,7 @@ static const struct interface_config *find_config_by_hwaddr( uint8_t *hwaddr) { const struct config *config; - int i; + unsigned int i; config = config_get(); if (!config) @@ -484,7 +484,8 @@ retry: static void network_init_dns(struct network *network) { const struct config *config; - int i, rc, len; + unsigned int i; + int rc, len; bool modified; char *buf; -- cgit v1.2.1