dovecot-2.0: lib-settings: Added some consts to parameters.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 20 17:17:29 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/19a5f933849c
changeset: 10792:19a5f933849c
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 20 17:16:31 2010 +0200
description:
lib-settings: Added some consts to parameters.
diffstat:
src/lib-settings/settings-parser.c | 5 +++--
src/lib-settings/settings-parser.h | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 24467421976b -r 19a5f933849c src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c Sat Feb 20 16:25:31 2010 +0200
+++ b/src/lib-settings/settings-parser.c Sat Feb 20 17:16:31 2010 +0200
@@ -240,7 +240,7 @@
return ctx->roots[0].set_struct;
}
-void **settings_parser_get_list(struct setting_parser_context *ctx)
+void **settings_parser_get_list(const struct setting_parser_context *ctx)
{
unsigned int i;
void **sets;
@@ -1483,7 +1483,8 @@
}
struct setting_parser_context *
-settings_parser_dup(struct setting_parser_context *old_ctx, pool_t new_pool)
+settings_parser_dup(const struct setting_parser_context *old_ctx,
+ pool_t new_pool)
{
struct setting_parser_context *new_ctx;
struct hash_iterate_context *iter;
diff -r 24467421976b -r 19a5f933849c src/lib-settings/settings-parser.h
--- a/src/lib-settings/settings-parser.h Sat Feb 20 16:25:31 2010 +0200
+++ b/src/lib-settings/settings-parser.h Sat Feb 20 17:16:31 2010 +0200
@@ -111,7 +111,7 @@
void *settings_parser_get(struct setting_parser_context *ctx);
/* If there are multiple roots, return a NULL-terminated list to all of
their settings. */
-void **settings_parser_get_list(struct setting_parser_context *ctx);
+void **settings_parser_get_list(const struct setting_parser_context *ctx);
/* Like settings_parser_get(), but return change struct. */
void *settings_parser_get_changes(struct setting_parser_context *ctx);
@@ -178,7 +178,8 @@
const void *set, pool_t pool);
/* Duplicate the entire setting parser. */
struct setting_parser_context *
-settings_parser_dup(struct setting_parser_context *old_ctx, pool_t new_pool);
+settings_parser_dup(const struct setting_parser_context *old_ctx,
+ pool_t new_pool);
/* parsers is a name=NULL -terminated list. The parsers are appended as
dynamic_settings_list structures to their parent. All must have the same
More information about the dovecot-cvs
mailing list