From a17b5ed1a9ef01d008c69ed0fb4712afd802badb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 Sep 2005 14:05:17 +0000 Subject: [PATCH] (init_buffer): Fix error message for failed call to get_current_dir_name. (get_current_dir_name): Remove prototype. --- src/ChangeLog | 9 +++++++++ src/buffer.c | 6 ++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 33da3511c43..18cdcde2719 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,14 @@ 2005-09-10 Eli Zaretskii + * buffer.c (init_buffer): Fix error message for failed call to + get_current_dir_name. + (get_current_dir_name): Remove prototype. + + * xsmfns.c: (get_current_dir_name): Remove prototype. + + * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add + prototype. + * sysdep.c [WINDOWSNT]: Add prototype for getwd. * config.in: Regenerated. diff --git a/src/buffer.c b/src/buffer.c index b0227031ac7..448ef87413a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -50,8 +50,6 @@ extern int errno; #include "keymap.h" #include "frame.h" -extern char * get_current_dir_name (); - struct buffer *current_buffer; /* the current buffer */ /* First buffer in chain of all buffers (in reverse order of creation). @@ -5136,9 +5134,9 @@ init_buffer () Fset_buffer_multibyte (Qnil); pwd = get_current_dir_name (); - + if(!pwd) - fatal ("`get_cwd' failed: %s\n", strerror (errno)); + fatal ("`get_current_dir_name' failed: %s\n", strerror (errno)); #ifndef VMS /* Maybe this should really use some standard subroutine -- 2.39.5