aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-22 23:40:01 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-22 23:40:01 -0800
commit236781a2c13feb96a6dd56f762b2df6fec1dfee5 (patch)
treef04211282c1e9e57e6dd9def60a11db1e4545906 /src/core/init.c
parentbca0a27e2f4978a5a74748b07613c0e30014880c (diff)
downloadnng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.tar.gz
nng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.tar.bz2
nng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.zip
More C99-ification. Also end the _t thing for types (ISO C rules).
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/core/init.c b/src/core/init.c
index debfbbbe..500a0b54 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -1,11 +1,11 @@
-/*
- * Copyright 2016 Garrett D'Amore <garrett@damore.org>
- *
- * This software is supplied under the terms of the MIT License, a
- * copy of which should be located in the distribution where this
- * file was obtained (LICENSE.txt). A copy of the license may also be
- * found online at https://opensource.org/licenses/MIT.
- */
+//
+// Copyright 2016 Garrett D'Amore <garrett@damore.org>
+//
+// This software is supplied under the terms of the MIT License, a
+// copy of which should be located in the distribution where this
+// file was obtained (LICENSE.txt). A copy of the license may also be
+// found online at https://opensource.org/licenses/MIT.
+//
#include "core/nng_impl.h"
#include <stdlib.h>
@@ -14,7 +14,7 @@
static int
init_helper(void)
{
- /* This would be where we would initialize transports, etc. */
+ nni_transport_init();
return (0);
}
@@ -29,5 +29,6 @@ nni_init(void)
void
nni_fini(void)
{
+ nni_transport_fini();
nni_plat_fini();
}