OSDN Git Service

tests/random: extract test out of xf86drmRandom.c
[android-x86/external-libdrm.git] / tests / drmstat.c
index 345b8d2..c800ebb 100644 (file)
@@ -28,7 +28,9 @@
  * 
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -79,13 +81,8 @@ static void getversion(int fd)
        printf( "No driver available\n" );
     }
 }
-       
-void handler(int fd, void *oldctx, void *newctx)
-{
-    printf("Got fd %d\n", fd);
-}
 
-void process_sigio(char *device)
+static void process_sigio(char *device)
 {
     int              fd;
 
@@ -95,7 +92,6 @@ void process_sigio(char *device)
     }
 
     sigio_fd = fd;
-    /*  drmInstallSIGIOHandler(fd, handler); */
     for (;;) sleep(60);
 }
 
@@ -425,11 +421,4 @@ int main(int argc, char **argv)
     return r; 
 }
 
-void
-xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format,
-                va_list args)
-{
-       vfprintf(stderr, format, args);
-}
-
 int xf86ConfigDRI[10];