fixed some 'noreturn' warnings for the execv() functions
[util-vserver.git] / util-vserver / ensc_wrappers / wrappers_handler.hc
index 7f7ca44..663b2d0 100644 (file)
 #include <stdbool.h>
 #include <stdio.h>
 
-static UNUSED void 
-FatalErrnoError(bool condition, char const msg[]) /*@*/
+static inline ALWAYSINLINE NORETURN void
+FatalErrnoErrorFail(char const msg[])
 {
   extern int   wrapper_exit_code;
 
-  if (!condition)       return;
   perror(msg);
-
   exit(wrapper_exit_code);
 }
+
+static UNUSED void 
+FatalErrnoError(bool condition, char const msg[]) /*@*/
+{
+  if (!condition)       return;
+  FatalErrnoErrorFail(msg);
+}