From 2fa395ac7d4bd9d0108194c375bf69839f4d62ec Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 11 Feb 2006 12:12:27 +0000 Subject: Use const qualifier for textfile library --- common/textfile.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/textfile.h') 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); -- cgit