X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fsh%2Fsetlinebuf.c;h=3c5d056605cc6562b190e009ddd24d59668dd3d9;hb=f73dda092b33638d2d5e9c35375f687a607b5403;hp=fb097de4cbdd7d9cb676f912486463fef34f9365;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=platform%2Fupstream%2Fbash.git diff --git a/lib/sh/setlinebuf.c b/lib/sh/setlinebuf.c index fb097de..3c5d056 100644 --- a/lib/sh/setlinebuf.c +++ b/lib/sh/setlinebuf.c @@ -22,7 +22,7 @@ #include -extern char *xmalloc(); +#include #if defined (USING_BASH_MALLOC) # define LBUF_BUFSIZE 1008 @@ -42,7 +42,7 @@ sh_setlinebuf (stream) #endif #if defined (USING_BASH_MALLOC) - local_linebuf = xmalloc (LBUF_BUFSIZE); + local_linebuf = (char *)xmalloc (LBUF_BUFSIZE); #else local_linebuf = (char *)NULL; #endif @@ -56,7 +56,7 @@ sh_setlinebuf (stream) # endif /* !SETVBUF_REVERSED */ # else /* !HAVE_SETVBUF */ - setlinebuf (stream)); + setlinebuf (stream); return (0); #endif /* !HAVE_SETVBUF */