]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/thread.c
*: conform with COMMUNITY.md formatting rules, via 'make indent'
[mirror_frr.git] / lib / thread.c
index 9d64663d9c0de829aba030b68c61569e856a7a77..a221c7762866ebc310db7884ee2b569c50f2bf2a 100644 (file)
@@ -59,7 +59,7 @@ static struct list *masters;
 /* CLI start ---------------------------------------------------------------- */
 static unsigned int cpu_record_hash_key(struct cpu_thread_history *a)
 {
-       int size = sizeof (&a->func);
+       int size = sizeof(&a->func);
 
        return jhash(&a->func, size, 0);
 }
@@ -380,8 +380,7 @@ struct thread_master *thread_master_create(const char *name)
        }
 
        rv->cpu_record = hash_create_size(
-               8,
-               (unsigned int (*)(void *))cpu_record_hash_key,
+               8, (unsigned int (*)(void *))cpu_record_hash_key,
                (int (*)(const void *, const void *))cpu_record_hash_cmp,
                "Thread Hash");
 
@@ -937,7 +936,7 @@ static void thread_cancel_rw(struct thread_master *master, int fd, short state)
                zlog_debug(
                        "[!] Received cancellation request for nonexistent rw job");
                zlog_debug("[!] threadmaster: %s | fd: %d",
-                        master->name ? master->name : "", fd);
+                          master->name ? master->name : "", fd);
                return;
        }