From b82eea72c2b643929b62f0613bf5748d60328e2d Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Sat, 23 Jun 2007 19:45:13 +0000 Subject: input: code cleanup --- input/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/server.c b/input/server.c index 394fada3..0fa2bc82 100644 --- a/input/server.c +++ b/input/server.c @@ -173,9 +173,9 @@ static gboolean connect_event(GIOChannel *chan, GIOCondition cond, gpointer data if (input_device_set_channel(&src, &dst, psm, nsk) < 0) { /* Send unplug virtual cable to unknown devices */ if (psm == L2CAP_PSM_HIDP_CTRL) { + unsigned char unplug[] = { 0x15 }; int err; - unsigned char unplug = 0x15; - err = write(nsk, &unplug, sizeof(unplug)); + err = write(nsk, unplug, sizeof(unplug)); } close(nsk); return TRUE; -- cgit