summaryrefslogtreecommitdiff
path: root/lib/frr_pthread.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-09 11:20:53 -0500
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-09 11:20:53 -0500
commitb1087f35076a01882e77dda1f9c841ac1000fdec (patch)
treeb0d40ad02bbf899ac9d568de1fc08e2d9f90b402 /lib/frr_pthread.c
parent985e36a609ac51d8e39e252e796097c12c33adb5 (diff)
lib: frr_pthread int size nits
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.c')
-rw-r--r--lib/frr_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c
index 6fafc8db36..36a89168c2 100644
--- a/lib/frr_pthread.c
+++ b/lib/frr_pthread.c
@@ -152,7 +152,7 @@ void frr_pthread_set_name(struct frr_pthread *fpt, const char *name)
thread_master_set_name(fpt->master, name);
}
-struct frr_pthread *frr_pthread_get(unsigned int id)
+struct frr_pthread *frr_pthread_get(uint32_t id)
{
static struct frr_pthread holder = {};
struct frr_pthread *fpt;
@@ -234,7 +234,7 @@ uint32_t frr_pthread_get_id(void)
_Atomic uint32_t nxid;
nxid = atomic_fetch_add_explicit(&next_id, 1, memory_order_seq_cst);
/* just a sanity check, this should never happen */
- assert(nxid <= (INT_MAX - 1));
+ assert(nxid <= (UINT32_MAX - 1));
return nxid;
}