projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update hardening flags.
[awesomized/libmemcached]
/
libtest
/
cmdline.cc
diff --git
a/libtest/cmdline.cc
b/libtest/cmdline.cc
index 8cb76252259e6edef69bc302a8944db29e791d3b..5c3d09f2960487a8169d9b57ab807aa681193120 100644
(file)
--- a/
libtest/cmdline.cc
+++ b/
libtest/cmdline.cc
@@
-96,6
+96,7
@@
namespace {
return arg_buffer.str();
}
return arg_buffer.str();
}
+#if 0
std::string print_argv(char** argv)
{
std::stringstream arg_buffer;
std::string print_argv(char** argv)
{
std::stringstream arg_buffer;
@@
-107,6
+108,7
@@
namespace {
return arg_buffer.str();
}
return arg_buffer.str();
}
+#endif
static Application::error_t int_to_error_t(int arg)
{
static Application::error_t int_to_error_t(int arg)
{
@@
-621,7
+623,7
@@
void Application::Pipe::reset()
close(READ);
close(WRITE);
close(READ);
close(WRITE);
-#if HAVE_PIPE2
+#if
defined(HAVE_PIPE2) &&
HAVE_PIPE2
if (pipe2(_pipe_fd, O_NONBLOCK) == -1)
#else
if (pipe(_pipe_fd) == -1)
if (pipe2(_pipe_fd, O_NONBLOCK) == -1)
#else
if (pipe(_pipe_fd) == -1)