Modified to reflect changes in the API.
Showing
1 changed file
with
7 additions
and
2 deletions
... | @@ -46,11 +46,16 @@ main (int argc, char **argv) | ... | @@ -46,11 +46,16 @@ main (int argc, char **argv) |
46 | else | 46 | else |
47 | n = 1; | 47 | n = 1; |
48 | 48 | ||
49 | rc = sieve_compile (&mach, argv[n], NULL, NULL); | 49 | sieve_machine_init (&mach, NULL); |
50 | |||
51 | rc = sieve_compile (&mach, argv[n]); | ||
50 | if (rc == 0) | 52 | if (rc == 0) |
51 | { | 53 | { |
52 | if (debug) | 54 | if (debug) |
53 | sieve_set_debug (&mach, debug_printer, 100); | 55 | { |
56 | sieve_machine_set_debug (&mach, debug_printer, 100); | ||
57 | fprintf (stderr, "RUNNING\n"); | ||
58 | } | ||
54 | sieve_run (&mach); | 59 | sieve_run (&mach); |
55 | } | 60 | } |
56 | return rc; | 61 | return rc; | ... | ... |
-
Please register or sign in to post a comment