diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-10-22 22:59:07 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-10-22 22:59:07 +0000 |
commit | f507edf2917fd39ba7d66eea0ff9b16c8d5ffa56 (patch) | |
tree | 8ae2cd6f85604c6b27532d9343c692e1ea671324 /src/newmail.c | |
parent | 52a7a526ac02a83952bff60fe25c3bbd967bb6f3 (diff) |
some const fixes
git-svn-id: file:///home/lennart/svn/public/libnewmail/trunk@31 2d4e79f2-dfba-0310-a9f4-9628e67fcdf4
Diffstat (limited to 'src/newmail.c')
-rw-r--r-- | src/newmail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newmail.c b/src/newmail.c index 7d513c9..f480500 100644 --- a/src/newmail.c +++ b/src/newmail.c @@ -44,7 +44,7 @@ void* (*nm_realloc)(void *,size_t) = realloc; void (*nm_free)(void *) = free; enum nm_error nm_errno = 0; -char *nm_explanation = 0; +const char *nm_explanation = 0; static void _ltdl_init(int b) { static int n = 0; @@ -61,7 +61,7 @@ static void _ltdl_init(int b) { } -int nm_list(nm_enum_cb_t cb, const void*user) { +int nm_list(nm_enum_cb_t cb, void*user) { static char p[PATH_MAX]; DIR *d; struct dirent *de; @@ -190,7 +190,7 @@ fail: } -int nm_query_submit(struct nm_spool *s, enum nm_query query, oop_source *oop, nm_query_cb_t cb, const void *user) { +int nm_query_submit(struct nm_spool *s, enum nm_query query, oop_source *oop, nm_query_cb_t cb, void *user) { if (!s || !cb || !oop) { nm_error(NM_ERROR_INVPAR, NULL); |