Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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));
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;
switch (c) {
case 'i':
dump_info = 1;
- encoders = connectors = crtcs = modes = framebuffers = 1;
break;
case 'a':
test_all_modes = 1;