[pisa-src] r1420 - in trunk/pairing: libconfig_wrapper.c libconfig_wrapper.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 16:58:29 +0100

Author: tjansen
Date: Thu Oct 29 16:58:28 2009
New Revision: 1420

Log:
Consts for check_list{,_in_config}.

Modified:
   trunk/pairing/libconfig_wrapper.c
   trunk/pairing/libconfig_wrapper.h

Modified: trunk/pairing/libconfig_wrapper.c
==============================================================================
--- trunk/pairing/libconfig_wrapper.c   Thu Oct 29 16:57:32 2009        (r1419)
+++ trunk/pairing/libconfig_wrapper.c   Thu Oct 29 16:58:28 2009        (r1420)
@@ -268,7 +268,7 @@
  * @param list_name The list name
  * @return A pointer to the list.
  */
-config_setting_t *check_list(char * list_name)
+config_setting_t *check_list(const char * list_name)
 {
     return check_list_in_config(list_name,&authorized_cfg);
 }
@@ -280,7 +280,7 @@
  *
  * @return A pointer to the list.
  */
-config_setting_t *check_list_in_config(char * list_name, config_t *config)
+config_setting_t *check_list_in_config(const char * list_name, config_t 
*config)
 {
     config_setting_t *root;
     config_setting_t *list;

Modified: trunk/pairing/libconfig_wrapper.h
==============================================================================
--- trunk/pairing/libconfig_wrapper.h   Thu Oct 29 16:57:32 2009        (r1419)
+++ trunk/pairing/libconfig_wrapper.h   Thu Oct 29 16:58:28 2009        (r1420)
@@ -29,8 +29,8 @@
 int write_config(char *info, char *expiration, configtype type);
 int get_config_setting(char *filename, char *path, int type, void *return_val, 
int strlen);
 int add_hit(char *info, char *expiration);
-config_setting_t *check_list(char * list_name);
-config_setting_t *check_list_in_config(char * list_name, config_t *config);
+config_setting_t *check_list(const char * list_name);
+config_setting_t *check_list_in_config(const char * list_name, config_t 
*config);
 pisa_hitlist_entry *find_hit_in_hitlist(char *hit);
 int remove_hit(char *hit);
 

Other related posts:

  • » [pisa-src] r1420 - in trunk/pairing: libconfig_wrapper.c libconfig_wrapper.h - Thomas Jansen