Debian Codegraph @

debian/patches/feature_sentmode

raw
1 The first character of the argument of the new config option "sentmode"
2 will be used as the transfert mode in ?lo files ("^" is the default).
3
4 --- a/ifgate/ifpack.c
5 +++ b/ifgate/ifpack.c
6 @@ -42,6 +42,7 @@ extern char *pkdname(faddr *,char);
7
8 extern char *logname;
9 extern int fakeoutbound;
10 +extern char *sentmode;
11
12 static int each1(faddr*,char,int,char*);
13 static int each2(faddr*,char,int,char*);
14 @@ -435,7 +436,7 @@ char *pktfn;
15 }
16 if (dosoutbound)
17 {
18 - fprintf(fp,"#%s",dosoutbound);
19 + fprintf(fp,"%c%s",sentmode[0],dosoutbound);
20 if (*(dosoutbound+
21 strlen(dosoutbound)-1) != '\\')
22 fputc('\\',fp);
23 @@ -446,7 +447,7 @@ char *pktfn;
24 fputc('\r',fp);
25 fputc('\n',fp);
26 }
27 - else fprintf(fp,"#%s\n",arcfn);
28 + else fprintf(fp,"%c%s\n",sentmode[0],arcfn);
29 needadd=0;
30 }
31 }