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

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

Author: tjansen
Date: Thu Oct 29 17:03:20 2009
New Revision: 1422

Log:
Const for get_config_setting.

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 17:00:58 2009        (r1421)
+++ trunk/pairing/libconfig_wrapper.c   Thu Oct 29 17:03:20 2009        (r1422)
@@ -86,7 +86,7 @@
  *  @return 1 on success; 0 on failure
  *
  */
-int get_config_setting(char *filename, char *path, int type, void *return_val, 
int strlen)
+int get_config_setting(const char *filename, const char *path, int type, void 
*return_val, int strlen)
 {
        config_t cfg;
        config_setting_t *root;

Modified: trunk/pairing/libconfig_wrapper.h
==============================================================================
--- trunk/pairing/libconfig_wrapper.h   Thu Oct 29 17:00:58 2009        (r1421)
+++ trunk/pairing/libconfig_wrapper.h   Thu Oct 29 17:03:20 2009        (r1422)
@@ -27,7 +27,7 @@
 
 // Function prototypes
 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 get_config_setting(const char *filename, const char *path, int type, void 
*return_val, int strlen);
 int add_hit(char *info, char *expiration);
 config_setting_t *check_list(const char * list_name);
 config_setting_t *check_list_in_config(const char * list_name, config_t 
*config);

Other related posts:

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