diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-18 00:24:45 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-18 00:24:45 +0100 |
commit | 74d6545ffadf0a7f321138ae4ccd0def8f28e0d2 (patch) | |
tree | 4c063fd2462811ff1221230c9cfc5777731905f2 /tests/testdisplay.c | |
parent | 2de19c477af4f10370f1272e6578cec0d1b486bc (diff) |
testdisplay: shut up compiler
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index cc6153d6..a5a95560 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -1095,7 +1095,7 @@ out: static gboolean input_event(GIOChannel *source, GIOCondition condition, gpointer data) { - gchar buf[1]; + gchar buf[2]; gsize count; count = read(g_io_channel_unix_get_fd(source), buf, sizeof(buf)); @@ -1125,7 +1125,6 @@ static gboolean input_event(GIOChannel *source, GIOCondition condition, int main(int argc, char **argv) { int c; - int encoders = 0, connectors = 0, crtcs = 0, framebuffers = 0; char *modules[] = { "i915" }; unsigned int i; struct udev *u; @@ -1138,7 +1137,6 @@ int main(int argc, char **argv) switch (c) { case 'i': dump_info = 1; - encoders = connectors = crtcs = modes = framebuffers = 1; break; case 'a': test_all_modes = 1; |