Am 04.12.2010 14:02, schrieb Matthias Andree:
> Signed-off-by: Matthias Andree <[email protected]>
> ---
> misc.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
This applies to the beta2.2 branch and affects this code section:
138
139 static inline bool
140 openvpn_run_script (const struct argv *a, const struct env_set *es,
const unsigned int flags, const char *hook)
141 {
142 char msg[256];
143
144 openvpn_snprintf(msg, sizeof(msg), "WARNING: Failed running command
(%s)", hook);
145 return openvpn_execve_check(a, es, flags | S_SCRIPT, msg);
146 };
147
Evidently this is a function definition and hence not to be followed by a
semicolon. Most compilers will accept it, but try gcc -Wall -Wextra -pedantic
-std=c99 and see what you get :)
--
Matthias Andree