Clean up error return codes.

This commit is contained in:
Taeho Oh 2016-01-23 20:40:50 +09:00
parent f2559978ae
commit e62038e262

View File

@ -409,7 +409,7 @@ int main(int argc, char *argv[]) {
OMVSScanner omvs_scanner;
if (_omvs_init_net_devs_info() != 0) {
ret = -5;
ret = -1;
goto finish_return2;
}
@ -426,7 +426,7 @@ int main(int argc, char *argv[]) {
if (!g_option_context_parse(context, &argc, &argv, &error)) {
g_print("option parsing failed: %s\n", error->message);
g_error_free(error);
ret = -1;
ret = -2;
goto finish_return;
}
@ -469,7 +469,7 @@ int main(int argc, char *argv[]) {
if (!g_inet_address_get_is_multicast(addr)) {
g_print("%s is not multicast ip address\n", argv[i]);
g_object_unref(mask);
ret = -4;
ret = -5;
goto finish_return;
}
len = g_inet_address_mask_get_length(mask);