mirror of
				https://bitbucket.org/ohhara/ohmulticastvideoscanner.git
				synced 2025-10-31 02:17:13 +00:00 
			
		
		
		
	Clean up error return codes.
This commit is contained in:
		
							parent
							
								
									f2559978ae
								
							
						
					
					
						commit
						e62038e262
					
				| @ -409,7 +409,7 @@ int main(int argc, char *argv[]) { | |||||||
|   OMVSScanner omvs_scanner; |   OMVSScanner omvs_scanner; | ||||||
| 
 | 
 | ||||||
|   if (_omvs_init_net_devs_info() != 0) { |   if (_omvs_init_net_devs_info() != 0) { | ||||||
|     ret = -5; |     ret = -1; | ||||||
|     goto finish_return2; |     goto finish_return2; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| @ -426,7 +426,7 @@ int main(int argc, char *argv[]) { | |||||||
|   if (!g_option_context_parse(context, &argc, &argv, &error)) { |   if (!g_option_context_parse(context, &argc, &argv, &error)) { | ||||||
|     g_print("option parsing failed: %s\n", error->message); |     g_print("option parsing failed: %s\n", error->message); | ||||||
|     g_error_free(error); |     g_error_free(error); | ||||||
|     ret = -1; |     ret = -2; | ||||||
|     goto finish_return; |     goto finish_return; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| @ -469,7 +469,7 @@ int main(int argc, char *argv[]) { | |||||||
|     if (!g_inet_address_get_is_multicast(addr)) { |     if (!g_inet_address_get_is_multicast(addr)) { | ||||||
|       g_print("%s is not multicast ip address\n", argv[i]); |       g_print("%s is not multicast ip address\n", argv[i]); | ||||||
|       g_object_unref(mask); |       g_object_unref(mask); | ||||||
|       ret = -4; |       ret = -5; | ||||||
|       goto finish_return; |       goto finish_return; | ||||||
|     } |     } | ||||||
|     len = g_inet_address_mask_get_length(mask); |     len = g_inet_address_mask_get_length(mask); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user