From bce14d570204cd6190db720dd3ae7a9fb94394f2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 11 Jun 2005 13:38:42 +0000 Subject: [PATCH] Fix the previous revision. --- src/lib/subs/nstr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/subs/nstr.c b/src/lib/subs/nstr.c index c5dc880a..be031ca5 100644 --- a/src/lib/subs/nstr.c +++ b/src/lib/subs/nstr.c @@ -43,6 +43,7 @@ static char *nstr_parse_val(char *, struct valstr *); static int nstr_match_ca(struct valstr *, struct castr *); static int nstr_match_val(struct valstr *, int, struct castr *, int); +static int nstr_string_ok(struct castr *ca, int idx); static struct valstr *nstr_resolve_sel(struct valstr *, struct castr *); static struct valstr *nstr_mkselval(struct valstr *, int, struct castr *); static struct valstr *nstr_resolve_id(struct valstr *, struct castr *, int, int); @@ -364,7 +365,7 @@ nstr_match_val(struct valstr *val, int type, struct castr *ca, int idx) * Can CA[IDX] be compared to a string? * Return 0 for negative IDX. */ -int +static int nstr_string_ok(struct castr *ca, int idx) { return idx >= 0 && nstr_promote(ca[idx].ca_type) == NSC_STRING;