summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-06-12 10:27:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-06-12 10:27:09 +0000
commit84ace43c70d369c34fd8b6e4eb0c242eef859b76 (patch)
tree66999cb57c79e97c56d7d27845b52b2b9e936aae /include
parente509ce1f1001802e60ce2bbc3e05fe0381829e2a (diff)
downloadmailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.gz
mailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.bz2
Revised use of const modifiers
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/mu_auth.h6
-rw-r--r--include/mailutils/mutil.h4
-rw-r--r--include/mailutils/stream.h6
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 {
35}; 35};
36 36
37typedef int (*mu_auth_fp) __P((struct mu_auth_data **data, 37typedef int (*mu_auth_fp) __P((struct mu_auth_data **data,
38 void *key, 38 const void *key,
39 void *func_data, 39 void *func_data,
40 void *call_data)); 40 void *call_data));
41 41
@@ -52,7 +52,7 @@ struct mu_auth_module {
52 52
53extern int mu_auth_runlist __P((list_t flist, 53extern int mu_auth_runlist __P((list_t flist,
54 struct mu_auth_data **return_data, 54 struct mu_auth_data **return_data,
55 void *key, void *data)); 55 const void *key, void *data));
56extern struct mu_auth_data * 56extern struct mu_auth_data *
57mu_get_auth_by_name __P ((const char *username)); 57mu_get_auth_by_name __P ((const char *username));
58 58
@@ -63,7 +63,7 @@ extern int
63mu_authenticate __P((struct mu_auth_data *auth_data, char *pass)); 63mu_authenticate __P((struct mu_auth_data *auth_data, char *pass));
64 64
65extern int mu_auth_nosupport __P((struct mu_auth_data **return_data, 65extern int mu_auth_nosupport __P((struct mu_auth_data **return_data,
66 void *key, 66 const void *key,
67 void *func_data, 67 void *func_data,
68 void *call_data)); 68 void *call_data));
69 69
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));
132extern int mu_fd_wait __P((int fd, int *pflags, struct timeval *tvp)); 132extern int mu_fd_wait __P((int fd, int *pflags, struct timeval *tvp));
133 133
134extern int mu_decode_filter __P((stream_t *pfilter, stream_t input, 134extern int mu_decode_filter __P((stream_t *pfilter, stream_t input,
135 char *filter_type, 135 const char *filter_type,
136 char *fromcode, char *tocode)); 136 const char *fromcode, const char *tocode));
137 137
138extern enum mu_iconv_fallback_mode mu_default_fallback_mode; 138extern enum mu_iconv_fallback_mode mu_default_fallback_mode;
139extern int mu_set_default_fallback __P((const char *str)); 139extern 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,
144 int (*_flush) __PMT ((stream_t)), void *owner)); 144 int (*_flush) __PMT ((stream_t)), void *owner));
145 145
146extern int stream_set_strerror __P ((stream_t stream, 146extern int stream_set_strerror __P ((stream_t stream,
147 int (*fp) (stream_t, char **), void *owner)); 147 int (*fp) (stream_t, const char **), void *owner));
148 148
149extern int stream_set_wait __P ((stream_t stream, 149extern int stream_set_wait __P ((stream_t stream,
150 int (*wait) (stream_t, int *, struct timeval *), void *owner)); 150 int (*wait) (stream_t, int *, struct timeval *), void *owner));
@@ -156,10 +156,10 @@ extern int stream_sequential_readline __P((stream_t stream,
156 char *buf, size_t size, size_t *nbytes)); 156 char *buf, size_t size, size_t *nbytes));
157 157
158extern int stream_sequential_write __P((stream_t stream, 158extern int stream_sequential_write __P((stream_t stream,
159 char *buf, size_t size)); 159 const char *buf, size_t size));
160extern int stream_seek __P((stream_t stream, off_t off, int whence)); 160extern int stream_seek __P((stream_t stream, off_t off, int whence));
161 161
162extern int stream_strerror __P((stream_t stream, char **p)); 162extern int stream_strerror __P((stream_t stream, const char **p));
163 163
164#ifdef __cplusplus 164#ifdef __cplusplus
165} 165}

Return to:

Send suggestions and report system problems to the System administrator.