/* See LICENSE file for copyright and license details. */
#include <alsa/asoundlib.h>
-#include <arpa/inet.h>
#include <fcntl.h>
#include <ifaddrs.h>
#include <limits.h>
#include <linux/wireless.h>
-#include <locale.h>
#include <netdb.h>
#include <pwd.h>
#include <stdarg.h>
#include "strlcat.h"
#include "strlcpy.h"
-typedef char *(*op_fun)();
struct arg {
- op_fun func;
+ char *(*func)();
const char *format;
const char *args;
};
static char *
username(void)
{
+ /* FIXME: WHY USE REGISTER MODIFIER? */
register struct passwd *pw;
register uid_t uid;
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;