Commit b5eec1ac b5eec1ac68580e756af3d71d766a1ae7f7376a06 by Sergey Poznyakoff

Modified to reflect changes in the API.

1 parent bbc96354
...@@ -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;
......