]> git.pld-linux.org Git - packages/bacula.git/commitdiff
- changed static variable name (tee -> bacula_tee)
authorSzymon Siwek <sls@pld-linux.org>
Sun, 24 Dec 2006 13:34:52 +0000 (13:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bacula-compile.patch -> 1.2

bacula-compile.patch

index 1f1e145bd5b7c5fa268c07704e687db1d574cfe8..cc64210c2a00b979b5fa8c1fecc1377440438b33 100644 (file)
@@ -9,3 +9,69 @@
  #endif
  
  /* Imported functions */
+@@ -75,7 +75,7 @@
+ static BSOCK *UA_sock = NULL;
+ static DIRRES *dir;
+ static FILE *output = stdout;
+-static bool tee = false;                  /* output to output and stdout */
++static bool bacula_tee = false;                  /* output to output and stdout */
+ static bool stop = false;
+ static int argc;
+ static int numdir;
+@@ -702,7 +702,7 @@
+ {
+    int len;
+    if (!stop) {
+-      if (output == stdout || tee) {
++      if (output == stdout || bacula_tee) {
+          sendit(prompt);
+       }
+    }
+@@ -781,14 +781,14 @@
+ /* Send output to both termina and specified file */
+ static int teecmd(FILE *input, BSOCK *UA_sock)
+ {
+-   tee = true;
++   bacula_tee = true;
+    return do_outputcmd(input, UA_sock);
+ }
+ /* Send output to specified "file" */
+ static int outputcmd(FILE *input, BSOCK *UA_sock)
+ {
+-   tee = false;
++   bacula_tee = false;
+    return do_outputcmd(input, UA_sock);
+ }
+@@ -806,7 +806,7 @@
+       if (output != stdout) {
+          fclose(output);
+          output = stdout;
+-         tee = false;
++         bacula_tee = false;
+       }
+       return 1;
+    }
+@@ -865,7 +865,7 @@
+ void sendit(const char *buf)
+ {
+ #ifdef xHAVE_CONIO
+-    if (output == stdout || tee) {
++    if (output == stdout || bacula_tee) {
+        char *p, *q;
+        /*
+         * Here, we convert every \n into \r\n because the
+@@ -890,10 +890,10 @@
+     fputs(buf, output);
+     fflush(output);
+-    if (tee) {
++    if (bacula_tee) {
+        fputs(buf, stdout);
+     }
+-    if (output != stdout || tee) {
++    if (output != stdout || bacula_tee) {
+        fflush(stdout);
+     }
+ #endif
This page took 0.034305 seconds and 4 git commands to generate.