build: fix compile error in DNS manager

Fixes the following error in nm-dns-manager.c with NETCONFIG_PATH set:

  dns-manager/nm-dns-manager.c:320:4: error: too many arguments to function 'g_set_error_literal'
      g_set_error_literal (error,
This commit is contained in:
Beniamino Galvani 2015-04-01 10:26:57 +02:00
parent 63514d7a41
commit 3db2e9d013

View file

@ -317,11 +317,9 @@ dispatch_netconfig (char **searches,
/* child already exited */
ret = pid;
} else {
g_set_error_literal (error,
NM_MANAGER_ERROR,
NM_MANAGER_ERROR_FAILED,
"Error waiting for netconfig to exit: %s",
strerror (errno));
g_set_error (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_FAILED,
"Error waiting for netconfig to exit: %s",
strerror (errno));
}
}