summaryrefslogtreecommitdiffstats
path: root/usr.bin/window
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-09-17 03:58:52 +0000
committermarcel <marcel@FreeBSD.org>2003-09-17 03:58:52 +0000
commit9fef1a54f6f656d196b49d53fe630e7b38e4fb0b (patch)
treef7ca864de1d9e7a3ffc9db8b37e8e3c1aea82491 /usr.bin/window
parente702e4aa8e0bf746fbf5a42608d392446d0035af (diff)
downloadFreeBSD-src-9fef1a54f6f656d196b49d53fe630e7b38e4fb0b.zip
FreeBSD-src-9fef1a54f6f656d196b49d53fe630e7b38e4fb0b.tar.gz
Fix a `cast to pointer from integer of different size' warning.
usage() has been made a (non-void) function so that it can be used in a pointer expression (see macro `next'). Widen the implied integer return type of usage() so that we can cast to a pointer without warnings.
Diffstat (limited to 'usr.bin/window')
-rw-r--r--usr.bin/window/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/window/main.c b/usr.bin/window/main.c
index b618f14..844ca76 100644
--- a/usr.bin/window/main.c
+++ b/usr.bin/window/main.c
@@ -55,7 +55,7 @@ static char rcsid[] =
#include "char.h"
#include "local.h"
-#define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)usage()))
+#define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)(uintptr_t)usage()))
/*ARGSUSED*/
main(argc, argv)
OpenPOWER on IntegriCloud