Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1567 - trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r1567 - trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2008-03-24 23:23:26 PDT
Message Author: pmarek
Date: 2008-03-24 23:23:26-0700
New Revision: 1567

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/waa.c

Log:
Removed two more path arguments


Modified: trunk/fsvs/src/waa.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/waa​.c?view=diff&rev​=1567&p1=trunk/f​svs/src/waa.c&p2​=trunk/fsvs/src/waa.​c&r1=1566&r2​=1567
====================​====================​====================​==================
--- trunk/fsvs/src/waa.c (original)
+++ trunk/fsvs/src/waa.c 2008-03-24 23:23:26-0700
@@ -1306,11 +1306,12 @@
  * The estat::do_this_entry and estat::do_tree flags are set, and depending
  * on them (and opt_recursive) estat::entry_status is set.
  * */
-int waa__update_dir(struct estat *old, char *path)
+int waa__update_dir(struct estat *old)
 {
     int dir_hdl, status;
     struct estat current;
     int nr_new, i;
+ char *path;
 
 
     status=nr_new=0;
@@ -1320,8 +1321,7 @@
     current.by_inode=cur​rent.by_name=NULL;
     current.entry_count=0;
 
- if (!path)
- STOPIF( ops__build_path(&path, old), NULL);
+ STOPIF( ops__build_path(&path, old), NULL);
 
     /* To avoid storing arbitrarily long pathnames, we just open this
      * directory and do a fchdir() later. */
@@ -1706,7 +1706,7 @@
  * - it was freshly added.
  *
  * */
-inline int waa___check_dir_for_​update(struct estat *sts, char *fullpath)
+inline int waa___check_dir_for_​update(struct estat *sts)
 {
     int status;
 
@@ -1733,9 +1733,7 @@
         else
         {
             DEBUGP("dir_to_print | CHECK for %s", sts->name);
- STOPIF( waa__update_dir(sts, fullpath), NULL);
- /* After that update_dir fullpath may not be valid anymore! */
- fullpath=NULL;
+ STOPIF( waa__update_dir(sts), NULL);
         }
     }
 
@@ -1870,7 +1868,7 @@
             DEBUGP("doing empty directory %s", sts->name);
             /* Check this entry for added entries. There cannot be deleted
              * entries, as this directory had no entries before. */
- STOPIF( waa___check_dir_for_update(sts, fullpath), NULL);
+ STOPIF( waa___check_dir_for_​update(sts), NULL);
             /* Mind: \a fullpath may not be valid anymore. */
         }
 
@@ -1899,7 +1897,7 @@
                 /* Check the parent for added entries.
                  * Deleted entries have already been found missing while
                  * running through the list. */
- STOPIF( waa___check_dir_for_​update(sts->paren​t, NULL), NULL);
+ STOPIF( waa___check_dir_for_​update(sts->paren​t), NULL);
             }
             else
                 DEBUGP("deferring parent %s/%s", sts->parent->name, sts->name);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1567 - trunk: . fsvs/src pmarek P.Marek 2008-03-24 23:23:26 PDT
Messages per page: