aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Gabin FODOP GUMETE <gabinfodop@gmail.com>2019-01-31 18:27:23 +0100
committerPierre Gabin FODOP GUMETE <gabinfodop@gmail.com>2019-01-31 18:27:23 +0100
commitd2088223caba06a11627d0ba22e33fa32197e6d1 (patch)
tree96247c10295a5a4150a897fc32dd66657906ce0a
parenta3943878dc06607ec988385ad01074ec0900961c (diff)
modif
Change-Id: Icbc6cdfe014529ab435325d5fa72c216d20db5b8
-rw-r--r--src/afb-wsj1-test.cpp6
-rw-r--r--src/afb-wsj1.hpp1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/afb-wsj1-test.cpp b/src/afb-wsj1-test.cpp
index 90044ede..f355e1a7 100644
--- a/src/afb-wsj1-test.cpp
+++ b/src/afb-wsj1-test.cpp
@@ -1,8 +1,8 @@
#include "afb-wsj1.hpp"
void onreply(const char *value){
- std::cout<< *value<<std::endl;
- system("PAUSE");
+ std::cout << value << std::endl;
+ exit(0);
}
int main(int ac, char **av){
@@ -13,6 +13,6 @@ int main(int ac, char **av){
afb::wsj1 sj1;
sj1.connect(uri);
sj1.call(api,verb,req,onreply);
-
+ system("PAUSE");
return EXIT_SUCCESS;
} \ No newline at end of file
diff --git a/src/afb-wsj1.hpp b/src/afb-wsj1.hpp
index fa236fae..2c18cf19 100644
--- a/src/afb-wsj1.hpp
+++ b/src/afb-wsj1.hpp
@@ -143,6 +143,7 @@ sd_event *wsj1::eloop_() {
t.detach();
}
}
+ return el;
}
void wsj1::on_hangup_(struct afb_wsj1 *wsj1) {