]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/remove.c (rm_1): Remove decl of local, fd_cwd.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Nov 2006 09:55:32 +0000 (10:55 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 26 Nov 2006 16:38:09 +0000 (17:38 +0100)
Replace each of two uses with literal AT_FDCWD.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
ChangeLog
src/remove.c

index 74079b6e0016d7232b50d3444fa8fceeb7e1d949..cca0cf3a8f8154a8da28e2abdb086f6ceb3ce7e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * src/remove.c (rm_1): Remove decl of local, fd_cwd.
+       Replace each of two uses with literal AT_FDCWD.
+
 2006-11-25  Jim Meyering  <jim@meyering.net>
 
        * Makefile.am (EXTRA_DIST): Remove announce-gen from here, too.
index add85dd7ba1e7dd873fe0a5b7cd48fe43428fc2d..1b4c4c4f8fc3105a146c49292f1b35e6e68d1fb0 100644 (file)
@@ -1490,8 +1490,7 @@ rm_1 (Dirstack_state *ds, char const *filename,
   AD_push_initial (ds);
   AD_INIT_OTHER_MEMBERS ();
 
-  int fd_cwd = AT_FDCWD;
-  enum RM_status status = remove_entry (fd_cwd, ds, filename, &st, x, NULL);
+  enum RM_status status = remove_entry (AT_FDCWD, ds, filename, &st, x, NULL);
   if (status == RM_NONEMPTY_DIR)
     {
       /* In the event that remove_dir->remove_cwd_entries detects
@@ -1500,7 +1499,7 @@ rm_1 (Dirstack_state *ds, char const *filename,
       if (setjmp (ds->current_arg_jumpbuf))
        status = RM_ERROR;
       else
-       status = remove_dir (fd_cwd, ds, filename, &st, x, cwd_errno);
+       status = remove_dir (AT_FDCWD, ds, filename, &st, x, cwd_errno);
 
       AD_stack_clear (ds);
     }