summaryrefslogtreecommitdiffstats
path: root/hacks/tessellimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/tessellimage.c')
-rw-r--r--hacks/tessellimage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hacks/tessellimage.c b/hacks/tessellimage.c
index 40c5b94..c518e83 100644
--- a/hacks/tessellimage.c
+++ b/hacks/tessellimage.c
@@ -17,9 +17,6 @@
# include <X11/keysymdef.h>
#endif
-#undef countof
-#define countof(x) (sizeof((x))/sizeof((*x)))
-
struct state {
Display *dpy;
Window window;
@@ -364,7 +361,7 @@ analyze (struct state *st)
for (x = 0; x < st->delta->width; x++)
{
unsigned long p = XGetPixel (st->delta, x, y);
- if (p > sizeof(histo)) abort();
+ if (p > countof(histo)) abort();
histo[p]++;
}