diff --git a/examples/getme.cpp b/examples/getme.cpp index dfd285d..b6d1620 100644 --- a/examples/getme.cpp +++ b/examples/getme.cpp @@ -9,7 +9,6 @@ #define USE_SIGNAL #endif -#include #include //! [Headers] @@ -34,11 +33,6 @@ void alldone(int num) } #endif -void onthewayout(void* arg) { - (void)arg; - std::cout<<"Done\n"; -} - struct ChanReq : public pva::ChannelRequester { virtual ~ChanReq() {} @@ -123,6 +117,7 @@ struct GetReq : public pva::ChannelGetRequester int main(int argc, char *argv[]) { try { + double waitTime = -1.0; std::string providerName("pva"); typedef std::vector pvs_t; pvs_t pvs; @@ -131,11 +126,18 @@ int main(int argc, char *argv[]) { if(argv[i][0]=='-') { if(strcmp(argv[i], "-P")==0 || strcmp(argv[i], "--provider")==0) { if(i(argv[++i]); + } else { + std::cerr << "--timeout requires value\n"; + return 1; + } } else { std::cerr<<"Unknown argument: "<