Skip to content

Commit

Permalink
Use cstdio to avoid exception warning during build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 28, 2024
1 parent 067e1a4 commit 663d888
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cplusplus_pair.cc
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
Expand All @@ -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++"

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 663d888

Please sign in to comment.