libaltos: Fix warning in linux libaltos code
authorKeith Packard <keithp@keithp.com>
Mon, 21 Mar 2016 06:11:49 +0000 (23:11 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Mar 2016 06:11:49 +0000 (23:11 -0700)
Just returned the wrong name of the value

Signed-off-by: Keith Packard <keithp@keithp.com>
libaltos/libaltos_linux.c

index d7cd15cfe79357a92b7f44c680c9b8bb6038ca4a..2065d74af7648e883b23a596808c983043917d5a 100644 (file)
@@ -517,7 +517,7 @@ altos_bt_open(struct altos_bt_device *device)
 #else
        file->out_fd = dup(file->fd);
 #endif
-       return file;
+       return &file->file;
 no_link:
        close(file->fd);
 no_sock: