Fix a few return codes in error paths

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-04-05 00:55:19 -04:00
parent ee0e4cca5a
commit ecb08ec6a5
3 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ static int network_load_one(Manager *manager, const char *filename) {
if (errno == ENOENT)
return 0;
else
return errno;
return -errno;
}
network = new0(Network, 1);