From a12db30484865673b5e171f24170fcd51be26fef Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 3 Oct 2010 12:45:06 +0200 Subject: [PATCH] Remove erroneous CONST_CAST Commit 97f9b8ad137e333af9b3c767556d28dfda93a461 attempted to use CONST_CAST to avoid a compiler warning about constness. However it applies at the wrong level of deference. This change undoes that particular problem and reverts to the original cast. --- src/data/dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/dictionary.c b/src/data/dictionary.c index 5f86bbf5..9222f7ec 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -330,7 +330,7 @@ void dict_get_vars (const struct dictionary *d, const struct variable ***vars, size_t *cnt, enum dict_class exclude) { - dict_get_vars_mutable (d, CONST_CAST (struct variable ***, vars), cnt, exclude); + dict_get_vars_mutable (d, (struct variable ***) vars, cnt, exclude); } /* Sets *VARS to an array of pointers to variables in D and *CNT -- 2.30.2