From 179d55547cfb04eda5bd8ef11d237e0309aa93be Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 31 Dec 2014 14:45:37 +0100 Subject: [PATCH] inpcom.c, cleanup inp_remove_ws(), #1/5, highlight `s' beeing const --- src/frontend/inpcom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2405af102..9f69aa153 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2196,8 +2196,9 @@ inp_fix_subckt(struct names *subckt_w_params, char *s) static char* -inp_remove_ws(char *s) +inp_remove_ws(char * const s) { + char *x = s; char *big_buff; int big_buff_index = 0; char *buffer, *curr; @@ -2236,7 +2237,7 @@ inp_remove_ws(char *s) buffer = copy(big_buff); - tfree(s); + tfree(x); tfree(big_buff); return buffer;