Explorar o código

totemconfig: discard check of objdb_get_string ret

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse %!s(int64=14) %!d(string=hai) anos
pai
achega
6b9297131c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      exec/totemconfig.c

+ 3 - 2
exec/totemconfig.c

@@ -217,7 +217,7 @@ static void totem_volatile_config_read (
 	objdb_get_int (objdb,object_totem_handle, "max_network_delay", &totem_config->max_network_delay);
 	objdb_get_int (objdb,object_totem_handle, "max_network_delay", &totem_config->max_network_delay);
 
 
 	objdb_get_int (objdb,object_totem_handle, "window_size", &totem_config->window_size);
 	objdb_get_int (objdb,object_totem_handle, "window_size", &totem_config->window_size);
-	objdb_get_string (objdb, object_totem_handle, "vsftype", &totem_config->vsf_type);
+	(void)objdb_get_string (objdb, object_totem_handle, "vsftype", &totem_config->vsf_type);
 
 
 	objdb_get_int (objdb,object_totem_handle, "max_messages", &totem_config->max_messages);
 	objdb_get_int (objdb,object_totem_handle, "max_messages", &totem_config->max_messages);
 
 
@@ -423,7 +423,8 @@ printf ("couldn't find totem handle\n");
 	add_totem_config_notification(objdb, totem_config, object_totem_handle);
 	add_totem_config_notification(objdb, totem_config, object_totem_handle);
 
 
 	totem_config->transport_number = TOTEM_TRANSPORT_UDP;
 	totem_config->transport_number = TOTEM_TRANSPORT_UDP;
-	objdb_get_string (objdb, object_totem_handle, "transport", &transport_type);
+	(void)objdb_get_string (objdb, object_totem_handle, "transport", &transport_type);
+
 	if (transport_type) {
 	if (transport_type) {
 		if (strcmp (transport_type, "udpu") == 0) {
 		if (strcmp (transport_type, "udpu") == 0) {
 			totem_config->transport_number = TOTEM_TRANSPORT_UDPU;
 			totem_config->transport_number = TOTEM_TRANSPORT_UDPU;