From 4fcc8c0786612475d9b4080766486f2ec287e70d Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 12 Feb 2016 12:17:52 +0100 Subject: 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 --- call/call.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'call/call.c') 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) -- cgit v1.2.3