From: Andre Noll Date: Mon, 5 Mar 2007 19:47:42 +0000 (+0100) Subject: mysql_selector.c: mark mysql_macro_list[] const X-Git-Tag: v0.2.16~46 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=64dd27ad50e4440b0ba32565ba9cd98a3db66993;p=paraslash.git mysql_selector.c: mark mysql_macro_list[] const --- diff --git a/mysql_selector.c b/mysql_selector.c index 0a7d81f8..d7d4ee10 100644 --- a/mysql_selector.c +++ b/mysql_selector.c @@ -52,7 +52,7 @@ struct para_macro { const char *replacement; }; -static struct para_macro mysql_macro_list[] = { +static const struct para_macro mysql_macro_list[] = { { .name = "IS_N_SET", .replacement = "(data.%s != '1')" }, { @@ -146,9 +146,10 @@ out: * \return \p NULL if one of the underlying calls to \p s_a_r returned \p NULL. * Otherwise the completely expanded version of \p src is returned. */ -__must_check __malloc static char *s_a_r_list(struct para_macro *macro_list, char *src) +__must_check __malloc static char *s_a_r_list(const struct para_macro *macro_list, + char *src) { - struct para_macro *mp = macro_list; + const struct para_macro *mp = macro_list; char *ret = NULL, *tmp = para_strdup(src); while (mp->name) {