[vlc-commits] cli: reindent

Rémi Denis-Courmont git at videolan.org
Sun Nov 29 14:56:02 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 29 12:35:12 2020 +0200| [673f99d25c135c68f515a13d605b3c8966e29d10] | committer: Rémi Denis-Courmont

cli: reindent

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=673f99d25c135c68f515a13d605b3c8966e29d10
---

 modules/control/cli/cli.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index e112f68d85..5c10cd9ce4 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -512,22 +512,22 @@ static void *Run(void *data)
 
     while (sys->pi_socket_listen != NULL)
     {
-            assert(sys->pi_socket_listen != NULL);
+        assert(sys->pi_socket_listen != NULL);
 
-            int fd = net_Accept(intf, sys->pi_socket_listen);
-            if (fd == -1)
-                continue;
+        int fd = net_Accept(intf, sys->pi_socket_listen);
+        if (fd == -1)
+            continue;
 
-            int canc = vlc_savecancel();
-            struct cli_client *cl = cli_client_new_fd(intf, fd);
-            vlc_restorecancel(canc);
+        int canc = vlc_savecancel();
+        struct cli_client *cl = cli_client_new_fd(intf, fd);
+        vlc_restorecancel(canc);
 
-            if (cl != NULL)
-            {
-                vlc_mutex_lock(&sys->clients_lock);
-                vlc_list_append(&cl->node, &sys->clients);
-                vlc_mutex_unlock(&sys->clients_lock);
-            }
+        if (cl != NULL)
+        {
+            vlc_mutex_lock(&sys->clients_lock);
+            vlc_list_append(&cl->node, &sys->clients);
+            vlc_mutex_unlock(&sys->clients_lock);
+        }
     }
 
     return NULL;



More information about the vlc-commits mailing list