]> Dogcows Code - chaz/tar/commitdiff
Minor changes
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 17 Feb 2004 13:33:14 +0000 (13:33 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 17 Feb 2004 13:33:14 +0000 (13:33 +0000)
src/update.c

index f98dbb0493235a1988e655aaa898e69cd2bdbe5d..d2dcf2c0aa7f44d79254031e695e8b4f7b57df55 100644 (file)
@@ -126,14 +126,15 @@ update_archive (void)
            struct name *name;
 
            if (subcommand_option == UPDATE_SUBCOMMAND
-               && (name = name_scan (current_stat_info.file_name), name))
+               && (name = name_scan (current_stat_info.file_name)) != NULL)
              {
                struct stat s;
                enum archive_format unused;
 
                decode_header (current_header, &current_stat_info, &unused, 0);
                chdir_do (name->change_dir);
-               if (deref_stat (dereference_option, current_stat_info.file_name, &s) == 0
+               if (deref_stat (dereference_option,
+                               current_stat_info.file_name, &s) == 0
                    && s.st_mtime <= current_stat_info.stat.st_mtime)
                  add_avoided_name (current_stat_info.file_name);
              }
@@ -183,7 +184,7 @@ update_archive (void)
   {
     char *path;
 
-    while (path = name_from_list (), path)
+    while ((path = name_from_list ()) != NULL)
       {
        if (excluded_name (path))
          continue;
This page took 0.023757 seconds and 4 git commands to generate.