]> git.deb.at Git - pkg/t-prot.git/blob - contrib/t-prot.sl-slang2.diff
Imported Upstream version 2.101
[pkg/t-prot.git] / contrib / t-prot.sl-slang2.diff
1 Patch 2005-12-23 (c) by Gregor Herrmann, making t-prot.sl run with
2 slang2. His comment:
3
4 | After some fiddling around and reading manuals I found a workaround:
5 | replace "error" by "message".
6 | I don't know if this is the canonical solution but at least the
7 | errors are gone :-)
8
9
10 --- t-prot.sl.2.0.2-1   2005-12-23 19:20:43.000000000 +0100
11 +++ t-prot.sl   2005-12-23 19:21:24.000000000 +0100
12 @@ -73,3 +73,3 @@
13         if (f == NULL) {
14 -               error ("Unable to filter article to "+fname);
15 +               message ("Unable to filter article to "+fname);
16                 return;
17 @@ -82,3 +82,3 @@
18         if (f == NULL) {
19 -               error (fname+" could not be opened.");
20 +               message (fname+" could not be opened.");
21                 return;
22 @@ -90,3 +90,3 @@
23  
24 -       if (0 != remove(fname)) error ("Unable to remove "+fname);
25 +       if (0 != remove(fname)) message ("Unable to remove "+fname);
26  
27 @@ -97,6 +97,6 @@
28         if (1 == register_hook("read_article_hook", "t_prot")) {
29 -               error("t-prot filtering activated");
30 +               message ("t-prot filtering activated");
31         }
32         else {
33 -               error("t-prot filtering NOT activated");
34 +               message ("t-prot filtering NOT activated");
35         }
36 @@ -106,6 +106,6 @@
37         if (1 == unregister_hook("read_article_hook", "t_prot")) {
38 -               error("t-prot filtering deactivated");
39 +               message ("t-prot filtering deactivated");
40         }
41         else {
42 -               error("t-prot filtering NOT deactivated");
43 +               message ("t-prot filtering NOT deactivated");
44         }