From a7a2cdb0201a6e85caae621e748cfab03998b6a6 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 14 Jan 2025 23:15:48 -0800 Subject: init: use nng_err --- src/core/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // 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)) { -- cgit v1.2.3-70-g09d2