From 338da94bea80a16c737117b614ace2f4bb4446a3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 4 Feb 2010 00:53:18 +0000 Subject: fixed build on posix some cleanup --- src/posix/sysExec.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/posix') diff --git a/src/posix/sysExec.hpp b/src/posix/sysExec.hpp index 506e03d..359c1e4 100644 --- a/src/posix/sysExec.hpp +++ b/src/posix/sysExec.hpp @@ -29,10 +29,10 @@ * You should have received a copy of the GNU General Public License * along with anytun. If not, see . */ -#pragma once -#ifndef ANYTUN_sysexec_hpp_INCLUDED -#define ANYTUN_sysexec_hpp_INCLUDED - +#pragma once +#ifndef ANYTUN_sysexec_hpp_INCLUDED +#define ANYTUN_sysexec_hpp_INCLUDED + #include #include #include @@ -42,7 +42,7 @@ #include #include #include - + SysExec::~SysExec() { if(!closed_) @@ -62,7 +62,7 @@ char** dupEnv(StringList const& env) evp[env.size()] = NULL; return evp; } - + void SysExec::doExec(std::string const& script, StringVector const& args, StringList const& env) { int pipefd[2]; @@ -145,7 +145,7 @@ int SysExec::waitForScript() return return_code_; } - + void SysExec::waitAndDestroy(SysExec*& s) { if(!s) @@ -161,6 +161,6 @@ void SysExec::waitAndDestroy(SysExec*& s) delete(s); s = NULL; -} - -#endif // ANYTUN_sysexec_hpp_INCLUDED \ No newline at end of file +} + +#endif // ANYTUN_sysexec_hpp_INCLUDED -- cgit v1.2.3