p2p: Coding style violation fixes
authorOlivier Guiter <olivier.guiter@linux.intel.com>
Mon, 10 Jun 2013 15:47:13 +0000 (17:47 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jun 2013 15:41:55 +0000 (17:41 +0200)
plugins/p2p.c

index bcabe2c..fea349b 100644 (file)
@@ -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;