summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
committervivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
commit4e262455a252c700f81df75fb8107d112062bba8 (patch)
treefbd55c66eebe78ccb60424e560548d1613aa403a /lib/thread.c
parentbfd498f0dab9a1937c6036cd35ed020b64a69e8f (diff)
parent58e7db106d5907cb129fcc316f02ce0bf34e3885 (diff)
Merge branch 'master' of https://github.com/frrouting/frr into evpn-ipv6-tenant-routing
Conflicts: bgpd/bgp_evpn.c
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 9d64663d9c..a221c77628 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -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;
}