aboutsummaryrefslogtreecommitdiff
path: root/tests/drmtest.c
diff options
context:
space:
mode:
authorMatthew W. S. Bell <matthew@bells23.org.uk>2010-01-30 02:14:44 +0000
committerKristian Høgsberg <krh@bitplanet.net>2010-02-04 19:45:10 -0500
commite4a519635f75bde38aeb5b09f2ff4efbf73453e9 (patch)
treee96db2209717740bdc28a0288255af013e4a3fbc /tests/drmtest.c
parent1802e1a4e747b5906d3af10c4a53fd457eddcbb4 (diff)
Tidy up compile warnings by cleaning up types.
Diffstat (limited to 'tests/drmtest.c')
-rw-r--r--tests/drmtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/drmtest.c b/tests/drmtest.c
index 15e5c4ae..685a6527 100644
--- a/tests/drmtest.c
+++ b/tests/drmtest.c
@@ -25,9 +25,11 @@
*
*/
+#include <string.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <sys/stat.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
@@ -60,7 +62,7 @@ int drm_open_matching(const char *pci_glob, int flags)
struct udev_device *device, *parent;
struct udev_list_entry *entry;
const char *pci_id, *path;
- int i, fd;
+ int fd;
udev = udev_new();
if (udev == NULL) {