Make LEN macro consistent with other suckless repos - slstatus - status monitor
HTML git clone git://git.suckless.org/slstatus
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c432c981df97f786c683435a4a06bd58fc9a7b18
DIR parent 87c3dd2c36e6d1df577e87fd4d73970fe58a3007
HTML Author: planet36 <planet36@users.noreply.github.com>
Date: Tue, 13 Apr 2021 12:43:18 -0400
Make LEN macro consistent with other suckless repos
Signed-off-by: drkhsh <me@drkhsh.at>
Diffstat:
M util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/util.h b/util.h
@@ -3,7 +3,7 @@
extern char buf[1024];
-#define LEN(x) (sizeof (x) / sizeof *(x))
+#define LEN(x) (sizeof(x) / sizeof((x)[0]))
extern char *argv0;