X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fgearmand.cc;h=852cf19496e829c88cbbc311378d876f97507434;hb=b220134a312e2a488810abfef510f5dbf59078a4;hp=d9dcf19248c719dc84b6b21983f5730d222f9c87;hpb=17690735658d7b44f91579df91e31da9ae185158;p=awesomized%2Flibmemcached diff --git a/libtest/gearmand.cc b/libtest/gearmand.cc index d9dcf192..852cf194 100644 --- a/libtest/gearmand.cc +++ b/libtest/gearmand.cc @@ -123,7 +123,7 @@ public: 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) : @@ -132,7 +132,7 @@ Gearmand::Gearmand(const std::string& host_arg, in_port_t port_arg, bool libtool set_pid_file(); } -bool Gearmand::build(size_t argc, const char *argv[]) +bool Gearmand::build() { if (getuid() == 0 or geteuid() == 0) { @@ -141,16 +141,6 @@ bool Gearmand::build(size_t argc, const char *argv[]) add_option("--listen=localhost"); - for (size_t x= 0 ; x < argc ; x++) - { - if (argv[x] == NULL) - { - break; - } - - add_option(argv[x]); - } - return true; }