From 29442c91c849f2c41bdf54be283d6886a67f5546 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 2 Jan 2012 19:43:02 +0000 Subject: [PATCH] cleanup, muffle compiler warning --- ChangeLog | 4 ++++ src/frontend/inpcom.c | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index cd863e2d0..ad3b585d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-01-02 Robert Larice + * src/frontend/inpcom.c : + cleanup, muffle compiler warning + 2012-01-02 Robert Larice * src/spicelib/analysis/cktdojob.c : xspice bug fix, invoke EVTsetup(ckt) only when `reset' diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 4f774d86d..21fcecbec 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3992,13 +3992,11 @@ static void inp_compat(struct line *deck) midline = cut_line; cut_line = strrchr(str_ptr, '('); /* replace '(' with ',' and ')' with ' ' */ - while(*str_ptr) { + for ( ; *str_ptr; *str_ptr++) if (*str_ptr == '(') *str_ptr = ','; else if (*str_ptr == ')') *str_ptr = ' '; - *str_ptr++; - } /* scan for last two numbers */ lastno = gettok_node(&cut_line); lnumber = INPevaluate(&lastno, &nerror, FALSE); @@ -4178,13 +4176,11 @@ static void inp_compat(struct line *deck) midline = cut_line; cut_line = strrchr(str_ptr, '('); /* replace '(' with ',' and ')' with ' ' */ - while(*str_ptr) { + for ( ; *str_ptr; str_ptr++) if (*str_ptr == '(') *str_ptr = ','; else if (*str_ptr == ')') *str_ptr = ' '; - *str_ptr++; - } /* scan for last two numbers */ lastno = gettok_node(&cut_line); lnumber = INPevaluate(&lastno, &nerror, FALSE);