From: Eli Zaretskii Date: Sat, 10 Sep 2005 14:05:17 +0000 (+0000) Subject: (init_buffer): Fix error message for failed call to get_current_dir_name. X-Git-Tag: emacs-pretest-22.0.90~7178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a17b5ed1a9ef01d008c69ed0fb4712afd802badb;p=emacs.git (init_buffer): Fix error message for failed call to get_current_dir_name. (get_current_dir_name): Remove prototype. --- 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