diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:27:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:27:09 +0000 |
commit | 84ace43c70d369c34fd8b6e4eb0c242eef859b76 (patch) | |
tree | 66999cb57c79e97c56d7d27845b52b2b9e936aae /include | |
parent | e509ce1f1001802e60ce2bbc3e05fe0381829e2a (diff) | |
download | mailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.gz mailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.bz2 |
Revised use of const modifiers
Diffstat (limited to 'include')
-rw-r--r-- | include/mailutils/mu_auth.h | 6 | ||||
-rw-r--r-- | include/mailutils/mutil.h | 4 | ||||
-rw-r--r-- | include/mailutils/stream.h | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/mailutils/mu_auth.h b/include/mailutils/mu_auth.h index 76163f159..7fa073109 100644 --- a/include/mailutils/mu_auth.h +++ b/include/mailutils/mu_auth.h @@ -35,7 +35,7 @@ struct mu_auth_data { }; typedef int (*mu_auth_fp) __P((struct mu_auth_data **data, - void *key, + const void *key, void *func_data, void *call_data)); @@ -52,7 +52,7 @@ struct mu_auth_module { extern int mu_auth_runlist __P((list_t flist, struct mu_auth_data **return_data, - void *key, void *data)); + const void *key, void *data)); extern struct mu_auth_data * mu_get_auth_by_name __P ((const char *username)); @@ -63,7 +63,7 @@ extern int mu_authenticate __P((struct mu_auth_data *auth_data, char *pass)); extern int mu_auth_nosupport __P((struct mu_auth_data **return_data, - void *key, + const void *key, void *func_data, void *call_data)); diff --git a/include/mailutils/mutil.h b/include/mailutils/mutil.h index b7c073d94..7280e5193 100644 --- a/include/mailutils/mutil.h +++ b/include/mailutils/mutil.h @@ -132,8 +132,8 @@ extern int mu_scheme_autodetect_p __P((const char *scheme, const char **path)); extern int mu_fd_wait __P((int fd, int *pflags, struct timeval *tvp)); extern int mu_decode_filter __P((stream_t *pfilter, stream_t input, - char *filter_type, - char *fromcode, char *tocode)); + const char *filter_type, + const char *fromcode, const char *tocode)); extern enum mu_iconv_fallback_mode mu_default_fallback_mode; extern int mu_set_default_fallback __P((const char *str)); diff --git a/include/mailutils/stream.h b/include/mailutils/stream.h index a0da1c953..dc919753b 100644 --- a/include/mailutils/stream.h +++ b/include/mailutils/stream.h @@ -144,7 +144,7 @@ extern int stream_set_flush __P ((stream_t, int (*_flush) __PMT ((stream_t)), void *owner)); extern int stream_set_strerror __P ((stream_t stream, - int (*fp) (stream_t, char **), void *owner)); + int (*fp) (stream_t, const char **), void *owner)); extern int stream_set_wait __P ((stream_t stream, int (*wait) (stream_t, int *, struct timeval *), void *owner)); @@ -156,10 +156,10 @@ extern int stream_sequential_readline __P((stream_t stream, char *buf, size_t size, size_t *nbytes)); extern int stream_sequential_write __P((stream_t stream, - char *buf, size_t size)); + const char *buf, size_t size)); extern int stream_seek __P((stream_t stream, off_t off, int whence)); -extern int stream_strerror __P((stream_t stream, char **p)); +extern int stream_strerror __P((stream_t stream, const char **p)); #ifdef __cplusplus } |