summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-18 10:07:06 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-11-13 17:27:32 +0800
commit9239fd1ec121fc6c6eda49ef5c2dab081a026785 (patch)
tree81f0ef1ca5650e4eeb474d391ad379c036f81564 /discover
parent5ac810ae1779fdd730637d146faf8a762bedd522 (diff)
downloadtalos-petitboot-9239fd1ec121fc6c6eda49ef5c2dab081a026785.tar.gz
talos-petitboot-9239fd1ec121fc6c6eda49ef5c2dab081a026785.zip
lib/types: use unsigned int for interface, dns and prio counts
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c2
-rw-r--r--discover/network.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index cfd0c7b..6fa14f9 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -368,7 +368,7 @@ static int default_option_priority(struct discover_boot_option *opt)
{
const struct config *config;
struct boot_priority *prio;
- int i;
+ unsigned int i;
config = config_get();
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;
OpenPOWER on IntegriCloud