summaryrefslogtreecommitdiff
path: root/src/tools/echo
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-04-13 12:00:09 +0200
committerdimitri staessens <[email protected]>2017-04-13 12:14:24 +0200
commitb43e8cd0f0858e78486752007c3640b70bf44c8d (patch)
treeb07a8c54f0e2cdcf258fba38ae77edc02e3d17d1 /src/tools/echo
parent72c28d6173ade511e9dc6969e0fc66db2dbba38a (diff)
downloadouroboros-b43e8cd0f0858e78486752007c3640b70bf44c8d.tar.gz
ouroboros-b43e8cd0f0858e78486752007c3640b70bf44c8d.zip
include, lib: Rename ap_init/ap_fini
Fixes #35
Diffstat (limited to 'src/tools/echo')
-rw-r--r--src/tools/echo/echo.c6
-rw-r--r--src/tools/echo/echo_server.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/echo/echo.c b/src/tools/echo/echo.c
index 051a16c3..b68e8c02 100644
--- a/src/tools/echo/echo.c
+++ b/src/tools/echo/echo.c
@@ -59,20 +59,20 @@ int main(int argc, char ** argv)
}
if (server) {
- if (ap_init(argv_dup[0])) {
+ if (ouroboros_init(argv_dup[0])) {
printf("Failed to init AP.\n");
return -1;
}
ret = server_main();
} else {
- if (ap_init(NULL)) {
+ if (ouroboros_init(NULL)) {
printf("Failed to init AP.\n");
return -1;
}
ret = client_main();
}
- ap_fini();
+ ouroboros_fini();
return ret;
}
diff --git a/src/tools/echo/echo_server.c b/src/tools/echo/echo_server.c
index 771155f4..22175a65 100644
--- a/src/tools/echo/echo_server.c
+++ b/src/tools/echo/echo_server.c
@@ -31,7 +31,7 @@ void shutdown_server(int signo)
{
(void) signo;
- ap_fini();
+ ouroboros_fini();
exit(EXIT_SUCCESS);
}