summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Guiter <olivier.guiter@linux.intel.com>2013-06-10 17:47:13 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-14 17:41:55 +0200
commitbc1e1caf615defa9b287bfc0ff047f1150e0bd4a (patch)
tree4e870f0e88c7dd5f207309370f174a3093b43bde
parent10365d484197a819bb4aa3410bcf0e3b8311733b (diff)
downloadneard-bc1e1caf615defa9b287bfc0ff047f1150e0bd4a.tar.gz
neard-bc1e1caf615defa9b287bfc0ff047f1150e0bd4a.tar.bz2
neard-bc1e1caf615defa9b287bfc0ff047f1150e0bd4a.zip
p2p: Coding style violation fixes
-rw-r--r--plugins/p2p.c12
1 files changed, 6 insertions, 6 deletions
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;