From 6a5fa572cf2f0dbdae6936ff44edc1be82a6e13a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 14 Jan 2015 16:59:44 +0100 Subject: android_ctrl_sock: include and whitespace cleanup --- src/android_ctrl_sock.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/android_ctrl_sock.c b/src/android_ctrl_sock.c index c681755..8be17a5 100644 --- a/src/android_ctrl_sock.c +++ b/src/android_ctrl_sock.c @@ -47,12 +47,10 @@ #ifdef __ANDROID__ -#include -#include +#include "fastd.h" + #include -#include -#include "fastd.h" /** declare a work buffer for sending/receiving \e n handles */ #define ANCIL_FD_BUFFER(n) \ @@ -205,7 +203,7 @@ bool fastd_android_protect_socket(int fd) { pr_debug("sending fd to protect"); if (ancil_send_fd(ctx.android_ctrl_sock_fd, fd) == -1) { exit_errno("could not send handle to Android for protecting"); - } + } char buf[20]; if (read(ctx.android_ctrl_sock_fd, buf, sizeof(buf)) == -1) { -- cgit v1.2.3