From: Ben Pfaff Date: Sun, 12 Dec 2010 06:07:56 +0000 (-0800) Subject: expressions: Make extract_min_valid() parameter const. X-Git-Tag: v0.7.7~112 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f382354b6bdc90dd9fe8e1a80e285fb831b6771;p=pspp-builds.git expressions: Make extract_min_valid() parameter const. This fixes the following warning: parse.c: In function ‘parse_function’: parse.c:1213: warning: passing argument 1 of ‘extract_min_valid’ discards qualifiers from pointer target type --- diff --git a/src/language/expressions/parse.c b/src/language/expressions/parse.c index ae968d00..b311c486 100644 --- a/src/language/expressions/parse.c +++ b/src/language/expressions/parse.c @@ -1033,7 +1033,7 @@ lookup_function (const char *name, } static int -extract_min_valid (char *s) +extract_min_valid (const char *s) { char *p = strrchr (s, '.'); if (p == NULL