Changeset: dbd8598f639a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dbd8598f639a
Modified Files:
        tools/merovingian/utils/properties.c
        tools/merovingian/utils/properties.h
Branch: Jan2014
Log Message:

Add some const keywords.


diffs (36 lines):

diff --git a/tools/merovingian/utils/properties.c 
b/tools/merovingian/utils/properties.c
--- a/tools/merovingian/utils/properties.c
+++ b/tools/merovingian/utils/properties.c
@@ -65,7 +65,7 @@ getDefaultProps(void)
  * Returns 0 when the properties could be written to the file.
  */
 inline int
-writeProps(confkeyval *ckv, char *path)
+writeProps(confkeyval *ckv, const char *path)
 {
        char file[1024];
        FILE *cnf;
@@ -122,7 +122,7 @@ writePropsBuf(confkeyval *ckv, char **bu
  * when reading the property file succeeded.
  */
 inline int
-readProps(confkeyval *ckv, char *path)
+readProps(confkeyval *ckv, const char *path)
 {
        char file[1024];
        FILE *cnf;
diff --git a/tools/merovingian/utils/properties.h 
b/tools/merovingian/utils/properties.h
--- a/tools/merovingian/utils/properties.h
+++ b/tools/merovingian/utils/properties.h
@@ -25,9 +25,9 @@
 #define MEROPROPFILE ".merovingian_properties"
 
 confkeyval *getDefaultProps(void);
-int writeProps(confkeyval *ckv, char *path);
+int writeProps(confkeyval *ckv, const char *path);
 void writePropsBuf(confkeyval *ckv, char **buf);
-int readProps(confkeyval *ckv, char *path);
+int readProps(confkeyval *ckv, const char *path);
 void readPropsBuf(confkeyval *ckv, char *buf);
 char *setProp(char *path, char *key, char *val);
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to