aboutsummaryrefslogtreecommitdiff
path: root/std.c
diff options
context:
space:
mode:
authorMatthias-Christian Ott <ott@enolink.de>2008-06-02 20:15:52 +0200
committerMatthias-Christian Ott <ott@enolink.de>2008-06-02 20:15:52 +0200
commit75b1565fdc3ddb9741a597a3a14bad7383ac763c (patch)
tree495a2c86f3119158f197a736b27af103f3f41b0e /std.c
parent4059fb04fa993305475446e2ab2cbb0a3c832203 (diff)
downloadst-75b1565fdc3ddb9741a597a3a14bad7383ac763c.tar.gz
st-75b1565fdc3ddb9741a597a3a14bad7383ac763c.tar.bz2
correct LENGTH()
Diffstat (limited to 'std.c')
-rw-r--r--std.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/std.c b/std.c
index 5368f67..78e9237 100644
--- a/std.c
+++ b/std.c
@@ -13,7 +13,7 @@
#include <string.h>
#include <unistd.h>
-#define LENGTH(x) (sizeof (x) / sizeof (x)[0])
+#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define MIN(a,b) (((a) < (b)) ? (a) : (b))