mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 08:10:08 +01:00
Fix Arch backend compilation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3441 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
6f84428f56
commit
d0e629a8bb
1 changed files with 4 additions and 4 deletions
|
|
@ -448,7 +448,7 @@ static GHashTable * ArchReadConfig(const char* file, const char* dev)
|
|||
{
|
||||
char hit[128];
|
||||
gchar** splt;
|
||||
gint hits,i;
|
||||
gint hits,j;
|
||||
|
||||
if (sscanf(val,"( %[!0-9a-zA-z ] )",hit))
|
||||
{
|
||||
|
|
@ -456,15 +456,15 @@ static GHashTable * ArchReadConfig(const char* file, const char* dev)
|
|||
splt=g_strsplit(hit," ",0);
|
||||
|
||||
hits=g_strv_length(splt);
|
||||
for (i=0;i<hits;i++)
|
||||
for (j=0;j<hits;j++)
|
||||
{
|
||||
|
||||
if (splt[i][0]=='!')
|
||||
if (splt[j][0]=='!')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((val=g_hash_table_lookup(cfg,splt[i])))
|
||||
if ((val=g_hash_table_lookup(cfg,splt[j])))
|
||||
{
|
||||
|
||||
if (sscanf(val," \" default gw %[0-9a-zA-Z.-_] \"",hit))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue