summaryrefslogtreecommitdiff
path: root/tests/modeprint
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/modeprint
parent1802e1a4e747b5906d3af10c4a53fd457eddcbb4 (diff)
Tidy up compile warnings by cleaning up types.
Diffstat (limited to 'tests/modeprint')
-rw-r--r--tests/modeprint/modeprint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
index 595d4447..89719147 100644
--- a/tests/modeprint/modeprint.c
+++ b/tests/modeprint/modeprint.c
@@ -89,7 +89,7 @@ int printMode(struct drm_mode_modeinfo *mode)
int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t value)
{
- const unsigned char *name = NULL;
+ const char *name = NULL;
int j;
printf("Property: %s\n", props->name);
@@ -101,7 +101,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
if (props->count_values) {
printf("\tvalues :");
for (j = 0; j < props->count_values; j++)
- printf(" %lld", props->values[j]);
+ printf(" %llu", props->values[j]);
printf("\n");
}
@@ -116,7 +116,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
printf("blob is %d length, %08X\n", blob->length, *(uint32_t *)blob->data);
drmModeFreePropertyBlob(blob);
} else {
- printf("error getting blob %lld\n", value);
+ printf("error getting blob %llu\n", value);
}
} else {
@@ -169,7 +169,7 @@ int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uin
if (modes) {
for (i = 0; i < connector->count_modes; i++) {
- mode = &connector->modes[i];
+ mode = (struct drm_mode_modeinfo *)&connector->modes[i];
printMode(mode);
}
}