initrd/cmdline: minor style cleanups

This commit is contained in:
Thomas Haller 2020-01-14 16:39:42 +01:00
parent 39e1e723de
commit 9f95b797f1
2 changed files with 3 additions and 2 deletions

View file

@ -208,7 +208,7 @@ read_all_connections_from_fw (GHashTable *connections, const char *sysfs_dir)
ibft = nmi_ibft_read (sysfs_dir);
g_hash_table_iter_init (&iter, ibft);
while (g_hash_table_iter_next (&iter, (gpointer)&mac, (gpointer)&nic)) {
while (g_hash_table_iter_next (&iter, (gpointer *) &mac, (gpointer *) &nic)) {
connection = nm_simple_connection_new ();
index = g_hash_table_lookup (nic, "index");
@ -235,7 +235,6 @@ read_all_connections_from_fw (GHashTable *connections, const char *sysfs_dir)
}
}
static void
parse_ip (GHashTable *connections, const char *sysfs_dir, char *argument)
{

View file

@ -815,6 +815,7 @@ static void
test_ibft_ip (void)
{
const char *const*ARGV = NM_MAKE_STRV ("ip=ibft");
_test_ibft_ip (ARGV);
}
@ -822,6 +823,7 @@ static void
test_ibft_rd_iscsi_ibft (void)
{
const char *const*ARGV = NM_MAKE_STRV ("rd.iscsi.ibft");
_test_ibft_ip (ARGV);
}