summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorStu Zhao <z12y12l12@gmail.com>2016-10-23 15:20:31 -0400
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2016-10-23 21:20:31 +0200
commit707ceffc8b556a3797651d78c0c0f37bae9884ea (patch)
treec15ff50ae5ed18a0adf41e3661be305556f6428b /i3status.c
parent8d2ef5f99b2ebc08a0a9d1f26492094692b1fc6b (diff)
Detect batteries using glob (#163)
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3status.c b/i3status.c
index 5e17745..239729e 100644
--- a/i3status.c
+++ b/i3status.c
@@ -104,7 +104,7 @@ static void *scalloc(size_t size) {
return result;
}
-static char *sstrdup(const char *str) {
+char *sstrdup(const char *str) {
char *result = strdup(str);
exit_if_null(result, "Error: out of memory (strdup())\n");
return result;