aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2001-01-02 14:07:22 +0000
committerEli Zaretskii2001-01-02 14:07:22 +0000
commitb3edfc9b59df7918a89625a2b05f515ceedc5005 (patch)
tree5e9faada4177dea0ed66932f806656b63ff7513c /src
parent8d0941b69bb911aa9ddb6cf924604cefcfb3a43a (diff)
downloademacs-b3edfc9b59df7918a89625a2b05f515ceedc5005.tar.gz
emacs-b3edfc9b59df7918a89625a2b05f515ceedc5005.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/dired.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dired.c b/src/dired.c
index 78b2d07e2e4..eb124f57c76 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -139,7 +139,6 @@ directory_files_internal (directory, full, match, nosort, attrs)
139 DIR *d; 139 DIR *d;
140 int directory_nbytes; 140 int directory_nbytes;
141 Lisp_Object list, dirfilename, encoded_directory; 141 Lisp_Object list, dirfilename, encoded_directory;
142 Lisp_Object handler;
143 struct re_pattern_buffer *bufp = NULL; 142 struct re_pattern_buffer *bufp = NULL;
144 int needsep = 0; 143 int needsep = 0;
145 int count = specpdl_ptr - specpdl; 144 int count = specpdl_ptr - specpdl;
@@ -171,7 +170,7 @@ directory_files_internal (directory, full, match, nosort, attrs)
171#endif 170#endif
172 } 171 }
173 172
174 /* Note: ENOCDE_FILE and DECODE_FILE can GC because they can run 173 /* Note: ENCODE_FILE and DECODE_FILE can GC because they can run
175 run_pre_post_conversion_on_str which calls Lisp directly and 174 run_pre_post_conversion_on_str which calls Lisp directly and
176 indirectly. */ 175 indirectly. */
177 dirfilename = ENCODE_FILE (dirfilename); 176 dirfilename = ENCODE_FILE (dirfilename);
@@ -446,7 +445,6 @@ file_name_completion (file, dirname, all_flag, ver_flag)
446 int all_flag, ver_flag; 445 int all_flag, ver_flag;
447{ 446{
448 DIR *d; 447 DIR *d;
449 DIRENTRY *dp;
450 int bestmatchsize = 0, skip; 448 int bestmatchsize = 0, skip;
451 register int compare, matchsize; 449 register int compare, matchsize;
452 unsigned char *p1, *p2; 450 unsigned char *p1, *p2;
@@ -820,10 +818,12 @@ If file does not exist, returns nil.")
820 Lisp_Object filename; 818 Lisp_Object filename;
821{ 819{
822 Lisp_Object values[12]; 820 Lisp_Object values[12];
823 Lisp_Object dirname;
824 Lisp_Object encoded; 821 Lisp_Object encoded;
825 struct stat s; 822 struct stat s;
823#ifdef BSD4_2
824 Lisp_Object dirname;
826 struct stat sdir; 825 struct stat sdir;
826#endif
827 char modes[10]; 827 char modes[10];
828 Lisp_Object handler; 828 Lisp_Object handler;
829 829