changeset 34970:947b53b0a1da

(directory_files_internal): Fix a typo in a comment. Remove an unused variable `handler'. (file_name_completion): Remove unused function-scope variable `dp'. (Ffile_attributes) <dirname, sdir>: Make declarations conditioned on BSD4_2.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 02 Jan 2001 14:07:22 +0000
parents d7e7fa35dd10
children e90a76ca0b26
files src/dired.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Tue Jan 02 14:06:38 2001 +0000
+++ b/src/dired.c	Tue Jan 02 14:07:22 2001 +0000
@@ -139,7 +139,6 @@
   DIR *d;
   int directory_nbytes;
   Lisp_Object list, dirfilename, encoded_directory;
-  Lisp_Object handler;
   struct re_pattern_buffer *bufp = NULL;
   int needsep = 0;
   int count = specpdl_ptr - specpdl;
@@ -171,7 +170,7 @@
 #endif
     }
 
-  /* Note: ENOCDE_FILE and DECODE_FILE can GC because they can run
+  /* Note: ENCODE_FILE and DECODE_FILE can GC because they can run
      run_pre_post_conversion_on_str which calls Lisp directly and
      indirectly.  */
   dirfilename = ENCODE_FILE (dirfilename);
@@ -446,7 +445,6 @@
      int all_flag, ver_flag;
 {
   DIR *d;
-  DIRENTRY *dp;
   int bestmatchsize = 0, skip;
   register int compare, matchsize;
   unsigned char *p1, *p2;
@@ -820,10 +818,12 @@
      Lisp_Object filename;
 {
   Lisp_Object values[12];
-  Lisp_Object dirname;
   Lisp_Object encoded;
   struct stat s;
+#ifdef BSD4_2
+  Lisp_Object dirname;
   struct stat sdir;
+#endif
   char modes[10];
   Lisp_Object handler;