From 6ba5a05905124d40794e19b570afedb7a480606f Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 6 May 2016 19:36:39 +0200 Subject: [PATCH] getword(), drop `after' argument which is identical to `*pi' --- src/frontend/numparam/xpressn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 1954adf0f..8e1aad2d4 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1317,13 +1317,12 @@ nupa_substitute(dico_t *dico, const char *s, char *r) static void -getword(const char * const s, SPICE_DSTRINGPTR tstr_p, int after, int *pi) +getword(const char * const s, SPICE_DSTRINGPTR tstr_p, int *pi) /* isolate a word from s after position "after". return i= last read+1 */ { int i = *pi; int ls; - i = after; ls = (int) strlen(s); do @@ -1464,7 +1463,7 @@ nupa_assignment(dico_t *dico, char *s, char mode) while ((i < ls) && !error) { - getword(s, &tstr, i, &i); + getword(s, &tstr, &i); t_p = spice_dstring_value(&tstr); if (t_p[0] == '\0') error = message(dico, " Identifier expected\n");