[pisa-src] r1461 - trunk/pairing/libconfig_wrapper.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2009 12:36:12 +0100

Author: tjansen
Date: Fri Oct 30 12:36:11 2009
New Revision: 1461

Log:
Fix -Wcast-qual warning:

libconfig_wrapper.c: In function ‘remove_hit’:
libconfig_wrapper.c:220: warning: cast discards qualifiers from pointer target 
type

Modified:
   trunk/pairing/libconfig_wrapper.c

Modified: trunk/pairing/libconfig_wrapper.c
==============================================================================
--- trunk/pairing/libconfig_wrapper.c   Fri Oct 30 12:34:17 2009        (r1460)
+++ trunk/pairing/libconfig_wrapper.c   Fri Oct 30 12:36:11 2009        (r1461)
@@ -209,7 +209,7 @@
 {
     pisa_hitlist_entry *con;
     config_setting_t *g,*parent;
-    char *name;
+    const char *name;
 
     con = find_hit_in_hitlist(hit);
 
@@ -217,7 +217,7 @@
     {
         g=con->group;
         parent= config_setting_parent(g);
-        name = (char *)config_setting_get_string(config_setting_get_member(g, 
"hit"));
+        name = config_setting_get_string(config_setting_get_member(g, "hit"));
 
         DEBUG("HIT: %s",name);
         DEBUG("Removing HIT.");

Other related posts:

  • » [pisa-src] r1461 - trunk/pairing/libconfig_wrapper.c - Thomas Jansen