projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a02ce1
)
expressions: Make extract_min_valid() parameter const.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:07:56 +0000
(22:07 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:10:45 +0000
(22:10 -0800)
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
src/language/expressions/parse.c
patch
|
blob
|
history
diff --git
a/src/language/expressions/parse.c
b/src/language/expressions/parse.c
index ae968d0078b5023f5647c1c600f1afcf0ea25b90..b311c4865a4e1e0c7788a0257a709af0ddc23835 100644
(file)
--- 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 (c
onst c
har *s)
{
char *p = strrchr (s, '.');
if (p == NULL