Commit 4a70857b authored by Jussi Laakkonen's avatar Jussi Laakkonen

Merge branch 'jb46940_unit_fix' into 'master'

Fix build issues

See merge request !259
parents a0b3b336 e62b23d2
......@@ -250,10 +250,11 @@ static char **parse_fallback_nameservers(char **nameservers, gsize len)
static GHashTable *parse_fallback_device_types(char **devtypes, gsize len)
{
GHashTable *h;
gsize i;
h = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
for (gsize i = 0; i < len; ++i) {
for (i = 0; i < len; ++i) {
char **v;
v = g_strsplit(devtypes[i], ":", 2);
......
......@@ -342,6 +342,7 @@ static void test_dbus_append_mode_details(DBusMessage *msg,
};
DBusMessageIter body, dict;
struct usb_moded_data sane;
size_t i;
DBG("");
......@@ -358,7 +359,7 @@ static void test_dbus_append_mode_details(DBusMessage *msg,
sane = *data;
data = &sane;
for (size_t i = 0; modes_without_networking[i]; ++i) {
for (i = 0; modes_without_networking[i]; ++i) {
if (g_strcmp0(sane.mode_name, modes_without_networking[i]))
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment