summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-01-02 14:07:22 +0000
committerEli Zaretskii <eliz@gnu.org>2001-01-02 14:07:22 +0000
commitb3edfc9b59df7918a89625a2b05f515ceedc5005 (patch)
tree5e9faada4177dea0ed66932f806656b63ff7513c /src/dired.c
parent8d0941b69bb911aa9ddb6cf924604cefcfb3a43a (diff)
downloademacs-b3edfc9b59df7918a89625a2b05f515ceedc5005.tar.gz
(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/dired.c')
-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)
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 @@ directory_files_internal (directory, full, match, nosort, attrs)
#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 @@ file_name_completion (file, dirname, all_flag, ver_flag)
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 @@ If file does not exist, returns nil.")
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;