From 2fc47e7052a08de464f08d890e222afd7dec75d8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 20 Mar 2016 23:11:49 -0700 Subject: [PATCH] libaltos: Fix warning in linux libaltos code Just returned the wrong name of the value Signed-off-by: Keith Packard --- libaltos/libaltos_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaltos/libaltos_linux.c b/libaltos/libaltos_linux.c index d7cd15cf..2065d74a 100644 --- a/libaltos/libaltos_linux.c +++ b/libaltos/libaltos_linux.c @@ -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: -- 2.30.2