summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/array.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-06-05 16:32:22 +0000
committernicm <nicm@openbsd.org>2010-06-05 16:32:22 +0000
commit1961359a57fdd8dfe1e9b86198a58543ff1ec01c (patch)
tree6343557c985a3736298612fbd668592836d64b69 /usr.bin/tmux/array.h
parentThis ioctl(TIOCGWINSZ) call is no longer necessary, the result is never (diff)
downloadwireguard-openbsd-1961359a57fdd8dfe1e9b86198a58543ff1ec01c.tar.xz
wireguard-openbsd-1961359a57fdd8dfe1e9b86198a58543ff1ec01c.zip
Shut up gcc4 warnings.
Diffstat (limited to 'usr.bin/tmux/array.h')
-rw-r--r--usr.bin/tmux/array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/array.h b/usr.bin/tmux/array.h
index d400acc4145..3edc718b359 100644
--- a/usr.bin/tmux/array.h
+++ b/usr.bin/tmux/array.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: array.h,v 1.4 2010/02/06 23:22:27 nicm Exp $ */
+/* $OpenBSD: array.h,v 1.5 2010/06/05 16:32:22 nicm Exp $ */
/*
* Copyright (c) 2006 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -47,7 +47,7 @@
} \
} while (0)
-#define ARRAY_EMPTY(a) ((a) == NULL || (a)->num == 0)
+#define ARRAY_EMPTY(a) (((void *) (a)) == NULL || (a)->num == 0)
#define ARRAY_LENGTH(a) ((a)->num)
#define ARRAY_DATA(a) ((a)->list)