projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c3dd2
)
Make LEN macro consistent with other suckless repos
author
planet36
<planet36@users.noreply.github.com>
Tue, 13 Apr 2021 16:43:18 +0000
(12:43 -0400)
committer
drkhsh
<me@drkhsh.at>
Mon, 19 Dec 2022 01:44:21 +0000
(
02:44
+0100)
Signed-off-by: drkhsh <me@drkhsh.at>
util.h
patch
|
blob
|
history
diff --git
a/util.h
b/util.h
index 7f1f26cd02401beaa5f408bcb5afa9f27ada1ef0..cf4b0273185f8d8f39ffc86a310ad36d5c89af1c 100644
(file)
--- 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;