Преглед на файлове

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 преди 14 години
родител
ревизия
6b9297131c
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  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, "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);
 
@@ -423,7 +423,8 @@ printf ("couldn't find totem handle\n");
 	add_totem_config_notification(objdb, totem_config, object_totem_handle);
 
 	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 (strcmp (transport_type, "udpu") == 0) {
 			totem_config->transport_number = TOTEM_TRANSPORT_UDPU;