#define DTAUS 1
#define CONTROL 2
-void main (int argc, char **argv)
+int main (int argc, char **argv)
{
char *dtaus[60];
char *control[60];
}
if (action == DTAUS) {
- if (!stat((char *)control, &sbuf))
- control2dtaus ((char *)control, (char *)dtaus, (char *)beleg, (char *)check);
+ if (!stat((char *)control, &sbuf)) {
+ if (control2dtaus ((char *)control, (char *)dtaus, (char *)beleg, (char *)check) == 0)
+ exit (1);
+ }
else exit (1);
} else if (action == CONTROL) {
if (!stat((char *)dtaus, &sbuf))
printf ("Keine Routine angegeben (-dtaus bzw. -control vergessen).\n");
exit (1);
}
+ exit (0);
}