diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2016-02-12 12:17:52 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-02-12 12:17:52 +0100 |
commit | 4fcc8c0786612475d9b4080766486f2ec287e70d (patch) | |
tree | c946d53e1136e27f4536a2cf5616d7d8ebcab918 /call | |
parent | 11c04b0da3684b8922a094dd293773de3214f876 (diff) |
call: Remove initializations to 0 of global variables.
C guarantees initialization to zero for global variables but putting those
variables into the .bss section. An explicit initialization however will
put the variable into the .data section where it will inflate the executable.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call')
-rw-r--r-- | call/call.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/call/call.c b/call/call.c index f9fe6eb..d6f15c2 100644 --- a/call/call.c +++ b/call/call.c @@ -86,10 +86,10 @@ static char *port; static char *mycall; static int stdin_is_tty = 1; -static iconv_t ibm850toutf8 = 0, wcharttoibm850 = 0, wcharttoutf8 = 0, utf8towchart = 0; +static iconv_t ibm850toutf8, wcharttoibm850, wcharttoutf8, utf8towchart; volatile int interrupted = FALSE; -static int sigwinchsignal = FALSE; +static int sigwinchsignal; int paclen; int fd; int curson = 1; @@ -134,9 +134,9 @@ typedef struct { static scrollbackstruct scrollback[SCROLLBACKSIZE]; -static int topscroll=0, lastscroll = 0, scrolledup=0, eatchar = 0; -static char inbuf[MAX_BUFLEN];static int inbuflen = 0, inbufwid = 0; -static char incharbuf[6];static int incharbuflen = 0; +static int topscroll, lastscroll, scrolledup, eatchar; +static char inbuf[MAX_BUFLEN];static int inbuflen, inbufwid; +static char incharbuf[6];static int incharbuflen; void statline(int mode, char *s); void addscrollline(char *s, int len) |