summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glthreads.c2
-rw-r--r--progs/xdemos/ipc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/progs/xdemos/glthreads.c b/progs/xdemos/glthreads.c
index 6c7029b6ec..e9c654c649 100644
--- a/progs/xdemos/glthreads.c
+++ b/progs/xdemos/glthreads.c
@@ -505,7 +505,7 @@ main(int argc, char *argv[])
for (i = 0; i < numThreads; i++) {
pthread_create(&WinThreads[i].Thread, NULL, thread_function,
(void*) &WinThreads[i]);
- printf("glthreads: Created thread %p\n", WinThreads[i].Thread);
+ printf("glthreads: Created thread %p\n", (void *) WinThreads[i].Thread);
}
if (MultiDisplays)
diff --git a/progs/xdemos/ipc.c b/progs/xdemos/ipc.c
index fa52b09076..c872d1641a 100644
--- a/progs/xdemos/ipc.c
+++ b/progs/xdemos/ipc.c
@@ -27,12 +27,12 @@
#include <assert.h>
#include <stdio.h>
#include <string.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
-#include <sys/types.h>
#include <sys/socket.h>
#include "ipc.h"