summaryrefslogtreecommitdiff
path: root/tests/cplusplus_pair.cc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-01-27 17:55:58 -0800
committerGarrett D'Amore <garrett@damore.org>2024-01-27 17:55:58 -0800
commit663d88827132612e1fc8af07a50a2c83dbe61e4c (patch)
tree740dd634361b7a037603ed0adb621ed0c58c5961 /tests/cplusplus_pair.cc
parent067e1a4eaf7c5a02d2945d65f2343085e1f5ce80 (diff)
downloadnng-663d88827132612e1fc8af07a50a2c83dbe61e4c.tar.gz
nng-663d88827132612e1fc8af07a50a2c83dbe61e4c.tar.bz2
nng-663d88827132612e1fc8af07a50a2c83dbe61e4c.zip
Use cstdio to avoid exception warning during build.
Diffstat (limited to 'tests/cplusplus_pair.cc')
-rw-r--r--tests/cplusplus_pair.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cplusplus_pair.cc b/tests/cplusplus_pair.cc
index 92387ce3..002c6f58 100644
--- a/tests/cplusplus_pair.cc
+++ b/tests/cplusplus_pair.cc
@@ -1,5 +1,5 @@
//
-// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2024 Staysail Systems, Inc.
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -10,8 +10,8 @@
#include "nng/nng.h"
#include "nng/protocol/pair1/pair.h"
+#include <cstdio>
#include <cstring>
-#include <iostream>
#define SOCKET_ADDRESS "inproc://c++"
@@ -68,11 +68,11 @@ main(int argc, char **argv)
throw nng_strerror(rv);
}
- std::cout << "Pass." << std::endl;
+ printf("Pass.\n");
#else
(void) argc;
(void) argv;
- std::cout << "Skipped (protocol unconfigured)." << std::endl;
+ printf("Skipped (protocol unconfigured).\n");
#endif
return (0);