projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
m4: fix typo
[awesomized/libmemcached]
/
libtest
/
gearmand.cc
diff --git
a/libtest/gearmand.cc
b/libtest/gearmand.cc
index 337fb72563fc6d20500a9690970b193a21ec2f8c..852cf19496e829c88cbbc311378d876f97507434 100644
(file)
--- a/
libtest/gearmand.cc
+++ b/
libtest/gearmand.cc
@@
-123,7
+123,7
@@
public:
return true;
}
return true;
}
- bool build(
size_t argc, const char *argv[]
);
+ bool build();
};
Gearmand::Gearmand(const std::string& host_arg, in_port_t port_arg, bool libtool_, const char* binary_arg) :
};
Gearmand::Gearmand(const std::string& host_arg, in_port_t port_arg, bool libtool_, const char* binary_arg) :
@@
-132,7
+132,7
@@
Gearmand::Gearmand(const std::string& host_arg, in_port_t port_arg, bool libtool
set_pid_file();
}
set_pid_file();
}
-bool Gearmand::build(
size_t argc, const char *argv[]
)
+bool Gearmand::build()
{
if (getuid() == 0 or geteuid() == 0)
{
{
if (getuid() == 0 or geteuid() == 0)
{
@@
-141,11
+141,6
@@
bool Gearmand::build(size_t argc, const char *argv[])
add_option("--listen=localhost");
add_option("--listen=localhost");
- for (size_t x= 0 ; x < argc ; x++)
- {
- add_option(argv[x]);
- }
-
return true;
}
return true;
}