summaryrefslogtreecommitdiffstats
path: root/common/textfile.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-11 12:12:27 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-11 12:12:27 +0000
commit2fa395ac7d4bd9d0108194c375bf69839f4d62ec (patch)
tree26373779f740a01a82b890e15fbac3a5efca4483 /common/textfile.h
parentdfc20857eb381b464b8fd6efdaac59e4a15f5d6d (diff)
Use const qualifier for textfile library
Diffstat (limited to 'common/textfile.h')
-rw-r--r--common/textfile.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/textfile.h b/common/textfile.h
index 3c8b6841..2e6d57b2 100644
--- a/common/textfile.h
+++ b/common/textfile.h
@@ -21,12 +21,12 @@
*
*/
-int create_dirs(char *filename, mode_t mode);
-int create_file(char *filename, mode_t mode);
+int create_dirs(const char *filename, const mode_t mode);
+int create_file(const char *filename, const mode_t mode);
-int textfile_put(char *pathname, char *key, char *value);
-int textfile_del(char *pathname, char *key);
-char *textfile_get(char *pathname, char *key);
+int textfile_put(const char *pathname, const char *key, const char *value);
+int textfile_del(const char *pathname, const char *key);
+char *textfile_get(const char *pathname, const char *key);
-int textfile_foreach(char *pathname,
+int textfile_foreach(const char *pathname,
void (*func)(char *key, char *value, void *data), void *data);