aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-12 15:21:25 +0000
committerRichard M. Stallman1994-04-12 15:21:25 +0000
commit1ddff51c653bcddc0ef827c15d5bf2e3f87e622c (patch)
tree1be01febf5e6542ba94e3b51ba950dfd8f7d8d73 /lib-src
parent396df3227db7c12d0c29b029196ca75bc069d3ee (diff)
downloademacs-1ddff51c653bcddc0ef827c15d5bf2e3f87e622c.tar.gz
emacs-1ddff51c653bcddc0ef827c15d5bf2e3f87e622c.zip
#undef static.
(etags_getcwd): Initialize bufsize.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index a9cf56fdc6d..d0ce3081272 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -28,7 +28,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
28 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 28 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
29 */ 29 */
30 30
31char pot_etags_version[] = "@(#) pot revision number is 10.28"; 31char pot_etags_version[] = "@(#) pot revision number is 10.29";
32 32
33#ifdef MSDOS 33#ifdef MSDOS
34#include <fcntl.h> 34#include <fcntl.h>
@@ -36,6 +36,10 @@ char pot_etags_version[] = "@(#) pot revision number is 10.28";
36 36
37#ifdef HAVE_CONFIG_H 37#ifdef HAVE_CONFIG_H
38#include <../src/config.h> 38#include <../src/config.h>
39/* On some systems, Emacs defines static as nothing
40 for the sake of unexec. We don't want that here
41 since we don't use unexec. */
42#undef static
39#endif 43#endif
40 44
41#include <stdio.h> 45#include <stdio.h>
@@ -3135,7 +3139,7 @@ etags_getcwd ()
3135{ 3139{
3136 FILE *pipe; 3140 FILE *pipe;
3137 char *buf; 3141 char *buf;
3138 int bufsize; 3142 int bufsize = 256;
3139 3143
3140 do 3144 do
3141 { 3145 {