this gives the compiler a chance to check weather the prototype and
definiton matches or not, which would catch issues like
3c47701.
all: slstatus
-$(COM:=.o): config.mk $(REQ:=.h)
+$(COM:=.o): config.mk $(REQ:=.h) slstatus.h
slstatus.o: slstatus.c slstatus.h arg.h config.h config.mk $(REQ:=.h)
.c.o:
#include <string.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
#include <limits.h>
#include <string.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
const char *
#include <time.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
datetime(const char *fmt)
#include <sys/statvfs.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
disk_free(const char *path)
/* See LICENSE file for copyright and license details. */
+#include "../slstatus.h"
#if defined(__linux__)
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
hostname(void)
#endif
#include "../util.h"
+#include "../slstatus.h"
static const char *
ip(const char *interface, unsigned short sa_family)
#include <stdio.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
kernel_release(void)
#include <X11/Xlib.h>
#include "../util.h"
+#include "../slstatus.h"
/*
* fmt consists of uppercase or lowercase 'c' for caps lock and/or 'n' for num
#include <X11/Xlib.h>
#include "../util.h"
+#include "../slstatus.h"
static int
valid_layout_or_variant(char *sym)
#include <stdlib.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
load_avg(void)
#include <limits.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
#include <stdint.h>
#include <string.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
num_files(const char *path)
#include <stdio.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
#include <stdint.h>
#include <string.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
run_command(const char *cmd)
#include <stdio.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
separator(const char *separator)
#include <string.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
static int
#include <stddef.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__linux__)
#include <time.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(CLOCK_BOOTTIME)
#define UPTIME_FLAG CLOCK_BOOTTIME
#include <unistd.h>
#include "../util.h"
+#include "../slstatus.h"
const char *
gid(void)
#include <unistd.h>
#include "../util.h"
+#include "../slstatus.h"
#if defined(__OpenBSD__) | defined(__FreeBSD__)
#include <sys/queue.h>
#include <unistd.h>
#include "../util.h"
+#include "../slstatus.h"
#define RSSI_TO_PERC(rssi) \
rssi >= -50 ? 100 : \