aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-14 23:15:48 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-14 23:15:48 -0800
commita7a2cdb0201a6e85caae621e748cfab03998b6a6 (patch)
tree51bd0a51b735fb0a8b19d4f90ef7d7616ae1a3b4 /src/core/init.c
parent6f56e693e9c9165d514bb5aeef96d0597d33d8ad (diff)
downloadnng-a7a2cdb0201a6e85caae621e748cfab03998b6a6.tar.gz
nng-a7a2cdb0201a6e85caae621e748cfab03998b6a6.tar.bz2
nng-a7a2cdb0201a6e85caae621e748cfab03998b6a6.zip
init: use nng_err
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/init.c b/src/core/init.c
index 9d9cdf48..974f4f2e 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -1,5 +1,5 @@
//
-// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -49,11 +49,11 @@ static nng_init_params init_params;
unsigned int init_count;
nni_atomic_flag init_busy;
-int
+nng_err
nng_init(nng_init_params *params)
{
nng_init_params zero = { 0 };
- int rv;
+ nng_err rv;
// cheap spin lock
while (nni_atomic_flag_test_and_set(&init_busy)) {