summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-14 03:35:09 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-14 03:35:09 +0300
commitf28e2682fdea5991891bf5f784292dc8fe7603a5 (patch)
treec99c2c6d7c63eac72ff7aa0c237a75d289753583
parent3e04f1d910b2bab606e2bcaa61a0cee4f9cfe8b8 (diff)
* != **
-rw-r--r--slstatus.c4
1 files changed, 2 insertions, 2 deletions
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;