From: Olivier Guiter Date: Mon, 10 Jun 2013 15:47:13 +0000 (+0200) Subject: p2p: Coding style violation fixes X-Git-Tag: 0.12~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc1e1caf615defa9b287bfc0ff047f1150e0bd4a;p=platform%2Fupstream%2Fneard.git p2p: Coding style violation fixes --- diff --git a/plugins/p2p.c b/plugins/p2p.c index bcabe2c..fea349b 100644 --- a/plugins/p2p.c +++ b/plugins/p2p.c @@ -278,7 +278,8 @@ static gboolean p2p_listener_event(GIOChannel *channel, GIOCondition condition, g_io_channel_unref(client_channel); - server_data->client_list = g_list_append(server_data->client_list, client_data); + server_data->client_list = g_list_append(server_data->client_list, + client_data); return !driver->single_connection; } @@ -309,11 +310,11 @@ static int p2p_connect_blocking(uint32_t adapter_idx, uint32_t target_idx, timeout.tv_sec = 8; timeout.tv_usec = 0; - if (setsockopt (fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, + if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0) near_error("Could not set the receive timeout\n"); - if (setsockopt (fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, + if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, sizeof(timeout)) < 0) near_error("Could not set the send timeout\n"); @@ -538,11 +539,11 @@ static int p2p_connect(uint32_t adapter_idx, uint32_t target_idx, timeout.tv_sec = 8; timeout.tv_usec = 0; - if (setsockopt (fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, + if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0) near_error("Could not set the receive timeout\n"); - if (setsockopt (fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, + if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, sizeof(timeout)) < 0) near_error("Could not set the send timeout\n"); @@ -603,7 +604,6 @@ static struct near_device_driver p2p_driver = { .push = p2p_push, }; - int near_p2p_register(struct near_p2p_driver *driver) { struct near_p2p_driver *tmp_driver;