mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
initrd/cmdline: minor style cleanups
This commit is contained in:
parent
39e1e723de
commit
9f95b797f1
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue