-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cstdio to avoid exception warning during build.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Copyright 2017 Garrett D'Amore <[email protected]> | ||
// 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); | ||
|