From: Ali H. Fardan Date: Wed, 14 Sep 2016 00:35:09 +0000 (+0300) Subject: * != ** X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/f28e2682fdea5991891bf5f784292dc8fe7603a5?ds=inline;hp=-c * != ** --- f28e2682fdea5991891bf5f784292dc8fe7603a5 diff --git a/slstatus.c b/slstatus.c index 69fb6a5..f0d9544 100644 --- a/slstatus.c +++ b/slstatus.c @@ -116,7 +116,7 @@ battery_perc(const char *battery) static char * battery_state(const char *battery) { - char *state[12]; + char state[12]; FILE *fp; if (!state) { @@ -607,7 +607,7 @@ main(void) { unsigned short int i; char status_string[4096]; - char *res, *element, *status_old; + char *res, *element; struct arg argument; struct sigaction act;