summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-11-26 17:21:46 +0000
committerBrian Paul <[email protected]>2001-11-26 17:21:46 +0000
commit1b2976f79bd06c392a7d49d14a23637d30fbb8e6 (patch)
treeae63678d29a09f7276660c92e77faa9e9b6922bb /progs
parentf660ec6ff82e06b08e088a7be93dbf75dc324039 (diff)
fix some warnings
Diffstat (limited to 'progs')
-rw-r--r--progs/xdemos/manywin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/xdemos/manywin.c b/progs/xdemos/manywin.c
index ea5ab65a6ca..2a28bc326b2 100644
--- a/progs/xdemos/manywin.c
+++ b/progs/xdemos/manywin.c
@@ -1,4 +1,4 @@
-/* $Id: manywin.c,v 1.4 2001/04/27 21:19:13 brianp Exp $ */
+/* $Id: manywin.c,v 1.5 2001/11/26 17:21:46 brianp Exp $ */
/*
* Create N GLX windows/contexts and render to them in round-robin
@@ -29,6 +29,7 @@
#include <GL/glx.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
@@ -281,7 +282,7 @@ static void
PrintInfo(const struct head *h)
{
printf("Name: %s\n", h->DisplayName);
- printf(" Display: %p\n", h->Dpy);
+ printf(" Display: %p\n", (void *) h->Dpy);
printf(" Window: 0x%x\n", (int) h->Win);
printf(" Context: 0x%x\n", (int) h->Context);
printf(" GL_VERSION: %s\n", h->Version);