Commit b4f901ad authored by Dietmar Maurer's avatar Dietmar Maurer

cleanup C wrapper

parent eceb9171
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
* *
*/ */
#include <unistd.h> #include <unistd.h>
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#define REAL_PATH "/usr/bin/pvemailforward.pl" #define REAL_PATH "/usr/bin/pvemailforward.pl"
int main(ac, av) int main(int argc, char **argv)
char **av;
{ {
execv(REAL_PATH, av); execv(REAL_PATH, argv);
fprintf(stderr, "exec '%s' failed\n", REAL_PATH); fprintf(stderr, "exec '%s' failed\n", REAL_PATH);
return -1; exit(-1);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment