diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-23 14:07:05 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-23 14:07:05 +0200 |
commit | 8a706acad288850f22e322cdcb62c2f585d9910d (patch) | |
tree | 18eedbf609e46a6237af3fc6d8c5ba6a7db5833b /input | |
parent | 7acf10a2b74d21c3548d6bea635db702688f82fa (diff) |
Fix virtual cable unplug sending
Diffstat (limited to 'input')
-rw-r--r-- | input/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/server.c b/input/server.c index 1793e1ca..b20570b7 100644 --- a/input/server.c +++ b/input/server.c @@ -103,9 +103,9 @@ static void connect_event_cb(GIOChannel *chan, GError *err, gpointer data) if (input_device_set_channel(&src, &dst, psm, chan) < 0) { /* Send unplug virtual cable to unknown devices */ if (psm == L2CAP_PSM_HIDP_CTRL) { - unsigned char unplug[] = { 0x15 }; + unsigned char unplug = 0x15; int err, sk = g_io_channel_unix_get_fd(chan); - err = write(sk, unplug, sizeof(unplug)); + err = write(sk, &unplug, sizeof(unplug)); } g_io_channel_shutdown(chan, TRUE, NULL); return; |