Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
{
const struct config *config;
struct boot_priority *prio;
- int i;
+ unsigned int i;
config = config_get();
uint8_t *hwaddr)
{
const struct config *config;
- int i;
+ unsigned int i;
config = config_get();
if (!config)
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;
void dump_config(struct config *config);
void dump_config(struct config *config)
{
- int i;
+ unsigned int i;
pb_log("configuration:\n");
static void update_network_config(struct powerpc_nvram_storage *nv,
struct config *config)
{
+ unsigned int i;
char *val;
- int i;
val = talloc_strdup(nv, "");
struct network_config {
struct interface_config **interfaces;
- int n_interfaces;
+ unsigned int n_interfaces;
const char **dns_servers;
- int n_dns_servers;
+ unsigned int n_dns_servers;
};
struct boot_priority {
struct config {
bool autoboot_enabled;
- int autoboot_timeout_sec;
+ unsigned int autoboot_timeout_sec;
struct network_config network;
struct boot_priority *boot_priorities;
- int n_boot_priorities;
+ unsigned int n_boot_priorities;
};
#endif /* _TYPES_H */