inpcom.c, cleanup inp_remove_ws(), #1/5, highlight `s' beeing const

This commit is contained in:
rlar 2014-12-31 14:45:37 +01:00
parent 9b1f248c52
commit 179d55547c
1 changed files with 3 additions and 2 deletions

View File

@ -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;