From 4986df1bafd971b9de5f57c72146e66ca9e32c55 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 19 Nov 2017 20:11:08 +0100 Subject: [PATCH] findsubname(), signature, drop unused return value --- src/frontend/numparam/spicenum.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index dea68fa10..675a0ed62 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -145,7 +145,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p) } -static int +static void findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p) /* truncate the parameterized subckt call to regular old Spice */ /* scan a string from the end, skipping non-idents and {expressions} */ @@ -209,8 +209,6 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p) if (found && (h < ls)) pscopy(dstr_p, s, 0, h); - - return h; } @@ -339,7 +337,7 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol) category = 'P'; } else if (toupper_c(s[0]) == 'X') { /* strip actual parameters */ - findsubname(dico, dstr_p); /* i= index following last identifier in s */ + findsubname(dico, dstr_p); category = 'X'; } else if (s[0] == '+') { /* continuation line */ category = '+';