inpcom.c, cleanup inp_remove_ws(), #1/5, highlight `s' beeing const
This commit is contained in:
parent
9b1f248c52
commit
179d55547c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue