commit d8f06aadb4b61b93f20303e5288c8859f6c2c75a
parent 98b40f993a1c3826ca44b7bad89e3ba4cf1e0cd7
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 22 Sep 2017 20:11:22 +0200
add missing convertion
Signed-off-by: MTRNord <mtrnord1@gmail.com>
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/main.cpp b/main.cpp
@@ -33,7 +33,9 @@ int main(int argc, char* argv[]) {
/* We might have elevated privileges beyond that of the user who invoked
* the program, due to suid bit. Be very careful about trusting any data! */
- broker::TunnelManager tunnelManager(c_str(reader.Get("broker", "namespace", "l2tp")));
+ char * nspaceL = reader.Get("broker", "namespace", "l2tp");
+
+ broker::TunnelManager tunnelManager(nspaceL);
tunnelManager.initialize();
} else {
/* Anything goes. */
@@ -41,6 +43,7 @@ int main(int argc, char* argv[]) {
return 0;
#else
printf("You currently have to use Linux to run this. Other System support might eventually come in the future. :)\n");
+
return 1;
#endif
}
\ No newline at end of file