summaryrefslogtreecommitdiff
path: root/src/xdemos/glxheads.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-03-08 19:44:28 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-03-08 19:44:28 +0000
commitbdfd292b016cfc36488b84917d0c49090434e190 (patch)
treed7ef334ccdb88dcec4d92a3813d7224c35b58273 /src/xdemos/glxheads.c
parent2ca397e8d58e2f7744e8f6b6367dbafd8461ea56 (diff)
fix some minor warnings
Diffstat (limited to 'src/xdemos/glxheads.c')
-rw-r--r--src/xdemos/glxheads.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xdemos/glxheads.c b/src/xdemos/glxheads.c
index 42bfc835..605ccc38 100644
--- a/src/xdemos/glxheads.c
+++ b/src/xdemos/glxheads.c
@@ -1,4 +1,4 @@
-/* $Id: glxheads.c,v 1.2 2000/11/10 17:23:07 brianp Exp $ */
+/* $Id: glxheads.c,v 1.3 2002/03/08 19:44:28 brianp Exp $ */
/*
* Exercise multiple GLX connections on multiple X displays.
@@ -30,6 +30,7 @@
#include <GL/glx.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
@@ -247,9 +248,9 @@ static void
PrintInfo(const struct head *h)
{
printf("Name: %s\n", h->DisplayName);
- printf(" Display: 0x%x\n", h->Dpy);
- printf(" Window: 0x%x\n", h->Win);
- printf(" Context: 0x%x\n", h->Context);
+ printf(" Display: 0x%x\n", (int) 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);
printf(" GL_VENDOR: %s\n", h->Vendor);
printf(" GL_RENDERER: %s\n", h->Renderer);