]> Dogcows Code - chaz/tar/blobdiff - src/checkpoint.c
Use AM_CPPFLAGS instead of INCLUDES.
[chaz/tar] / src / checkpoint.c
index 9f031f7e277f5247efe944d8bfedb8d95e62abef..eb83cd319137bd562d801c6ebe122407a64443fd 100644 (file)
@@ -77,7 +77,7 @@ void
 checkpoint_compile_action (const char *str)
 {
   struct checkpoint_action *act;
-  
+
   if (strcmp (str, ".") == 0 || strcmp (str, "dot") == 0)
     alloc_action (cop_dot);
   else if (strcmp (str, "bell") == 0)
@@ -113,20 +113,20 @@ checkpoint_compile_action (const char *str)
 }
 
 void
-checkpoint_finish_compile ()
+checkpoint_finish_compile (void)
 {
   if (checkpoint_option)
     {
       if (!checkpoint_action)
        /* Provide a historical default */
-       checkpoint_compile_action ("echo"); 
+       checkpoint_compile_action ("echo");
     }
   else if (checkpoint_action)
     /* Otherwise, set default checkpoint rate */
     checkpoint_option = DEFAULT_CHECKPOINT;
 }
 
-char *
+static char *
 expand_checkpoint_string (const char *input, bool do_write, unsigned cpn)
 {
   const char *opstr = do_write ? gettext ("write") : gettext ("read");
@@ -147,7 +147,7 @@ expand_checkpoint_string (const char *input, bool do_write, unsigned cpn)
        case 'u':
          outlen += cpslen - 2;
          break;
-         
+
        case 's':
          outlen += opstrlen - 2;
        }
@@ -164,11 +164,11 @@ expand_checkpoint_string (const char *input, bool do_write, unsigned cpn)
            case 'u':
              op = stpcpy (op, cps);
              break;
-             
+
            case 's':
              op = stpcpy (op, opstr);
              break;
-             
+
            default:
              *op++ = '%';
              *op++ = *ip;
@@ -188,7 +188,7 @@ run_checkpoint_actions (bool do_write)
 {
   struct checkpoint_action *p;
   FILE *tty = NULL;
-  
+
   for (p = checkpoint_action; p; p = p->next)
     {
       switch (p->opcode)
@@ -207,7 +207,7 @@ run_checkpoint_actions (bool do_write)
              fflush (tty);
            }
          break;
-         
+
        case cop_echo:
          {
            char *tmp;
@@ -215,16 +215,16 @@ run_checkpoint_actions (bool do_write)
            if (!str)
              {
                if (do_write)
-                 /* TRANSLATORS: This is a ``checkpoint of write operation'',
-                    *not* ``Writing a checkpoint''.
-                    E.g. in Spanish ``Punto de comprobaci@'on de escritura'',
-                    *not* ``Escribiendo un punto de comprobaci@'on'' */
+                 /* TRANSLATORS: This is a "checkpoint of write operation",
+                    *not* "Writing a checkpoint".
+                    E.g. in Spanish "Punto de comprobaci@'on de escritura",
+                    *not* "Escribiendo un punto de comprobaci@'on" */
                  str = gettext ("Write checkpoint %u");
                else
-                 /* TRANSLATORS: This is a ``checkpoint of read operation'',
-                    *not* ``Reading a checkpoint''.
-                    E.g. in Spanish ``Punto de comprobaci@'on de lectura'',
-                    *not* ``Leyendo un punto de comprobaci@'on'' */
+                 /* TRANSLATORS: This is a "checkpoint of read operation",
+                    *not* "Reading a checkpoint".
+                    E.g. in Spanish "Punto de comprobaci@'on de lectura",
+                    *not* "Leyendo un punto de comprobaci@'on" */
                  str = gettext ("Read checkpoint %u");
              }
            tmp = expand_checkpoint_string (str, do_write, checkpoint);
@@ -232,7 +232,7 @@ run_checkpoint_actions (bool do_write)
            free (tmp);
          }
          break;
-         
+
        case cop_ttyout:
          if (!tty)
            tty = fopen ("/dev/tty", "w");
@@ -245,11 +245,11 @@ run_checkpoint_actions (bool do_write)
              free (tmp);
            }
          break;
-         
+
        case cop_sleep:
          sleep (p->v.time);
          break;
-         
+
        case cop_exec:
          sys_exec_checkpoint_script (p->v.command,
                                      archive_name_cursor[0],
@@ -266,5 +266,4 @@ checkpoint_run (bool do_write)
 {
   if (checkpoint_option && !(++checkpoint % checkpoint_option))
     run_checkpoint_actions (do_write);
-}  
-
+}
This page took 0.02899 seconds and 4 git commands to generate.