summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-01 21:15:40 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-01 21:15:40 +0300
commit825141633bad2264c67c38ebcaab63f4c96631d3 (patch)
treed8f359393143a54df976ad554386bd936ae56cfb /slstatus.c
parent9e92d41db54b5c1128505ed778aa0feb9dd6457f (diff)
removed unnecessary typecast and added more comments
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index 7c625d1..d360977 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -27,9 +27,8 @@
#include "strlcat.h"
#include "strlcpy.h"
-typedef char *(*op_fun)();
struct arg {
- op_fun func;
+ char *(*func)();
const char *format;
const char *args;
};
@@ -475,6 +474,7 @@ uptime(void)
static char *
username(void)
{
+ /* FIXME: WHY USE REGISTER MODIFIER? */
register struct passwd *pw;
register uid_t uid;
@@ -514,6 +514,10 @@ uid(void)
static char *
vol_perc(const char *soundcard)
{
+ /*
+ * TODO: FIXME:
+ * https://github.com/drkh5h/slstatus/issues/12
+ */
int mute = 0;
long vol = 0, max = 0, min = 0;
snd_mixer_t *handle;