]> git.pld-linux.org Git - packages/bacula.git/blob - bacula-compile.patch
- tabs
[packages/bacula.git] / bacula-compile.patch
1 --- bacula-1.38.11/src/console/console.c.orig   2006-10-20 08:02:49.000000000 +0000
2 +++ bacula-1.38.11/src/console/console.c        2006-10-20 08:03:04.000000000 +0000
3 @@ -47,7 +47,7 @@
4  #ifdef HAVE_CYGWIN
5  int rl_catch_signals;
6  #else
7 -extern int rl_catch_signals;
8 +extern "C" int rl_catch_signals;
9  #endif
10  
11  /* Imported functions */
12 @@ -75,7 +75,7 @@
13  static BSOCK *UA_sock = NULL;
14  static DIRRES *dir;
15  static FILE *output = stdout;
16 -static bool tee = false;                  /* output to output and stdout */
17 +static bool bacula_tee = false;                  /* output to output and stdout */
18  static bool stop = false;
19  static int argc;
20  static int numdir;
21 @@ -702,7 +702,7 @@
22  {
23     int len;
24     if (!stop) {
25 -      if (output == stdout || tee) {
26 +      if (output == stdout || bacula_tee) {
27           sendit(prompt);
28        }
29     }
30 @@ -781,14 +781,14 @@
31  /* Send output to both termina and specified file */
32  static int teecmd(FILE *input, BSOCK *UA_sock)
33  {
34 -   tee = true;
35 +   bacula_tee = true;
36     return do_outputcmd(input, UA_sock);
37  }
38  
39  /* Send output to specified "file" */
40  static int outputcmd(FILE *input, BSOCK *UA_sock)
41  {
42 -   tee = false;
43 +   bacula_tee = false;
44     return do_outputcmd(input, UA_sock);
45  }
46  
47 @@ -806,7 +806,7 @@
48        if (output != stdout) {
49           fclose(output);
50           output = stdout;
51 -         tee = false;
52 +         bacula_tee = false;
53        }
54        return 1;
55     }
56 @@ -865,7 +865,7 @@
57  void sendit(const char *buf)
58  {
59  #ifdef xHAVE_CONIO
60 -    if (output == stdout || tee) {
61 +    if (output == stdout || bacula_tee) {
62         char *p, *q;
63         /*
64          * Here, we convert every \n into \r\n because the
65 @@ -890,10 +890,10 @@
66  
67      fputs(buf, output);
68      fflush(output);
69 -    if (tee) {
70 +    if (bacula_tee) {
71         fputs(buf, stdout);
72      }
73 -    if (output != stdout || tee) {
74 +    if (output != stdout || bacula_tee) {
75         fflush(stdout);
76      }
77  #endif
This page took 0.051737 seconds and 3 git commands to generate.