summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 19:45:13 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 19:45:13 +0000
commitb82eea72c2b643929b62f0613bf5748d60328e2d (patch)
treeb24567ee8b6d859b67132df02888bde6954e4937
parent0a3d6e899851ff7e43b502373076d85b5f016f09 (diff)
input: code cleanup
-rw-r--r--input/server.c4
1 files 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;