summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/replace.c4
-rw-r--r--source4/lib/replace/replace.h2
-rw-r--r--source4/lib/replace/test/testsuite.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c
index 048ea3a998..aa3e8717c2 100644
--- a/source4/lib/replace/replace.c
+++ b/source4/lib/replace/replace.c
@@ -338,9 +338,9 @@ char *rep_inet_ntoa(struct in_addr ip)
#endif
#ifndef HAVE_SETLINEBUF
-int rep_setlinebuf(FILE *stream)
+void rep_setlinebuf(FILE *stream)
{
- return setvbuf(stream, (char *)NULL, _IOLBF, 0);
+ setvbuf(stream, (char *)NULL, _IOLBF, 0);
}
#endif /* HAVE_SETLINEBUF */
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index ee86a81b5d..7664c51a5d 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -140,7 +140,7 @@ int rep_setegid(gid_t);
#ifndef HAVE_SETLINEBUF
#define setlinebuf rep_setlinebuf
-int rep_setlinebuf(FILE *);
+void rep_setlinebuf(FILE *);
#endif
#ifndef HAVE_STRCASESTR
diff --git a/source4/lib/replace/test/testsuite.c b/source4/lib/replace/test/testsuite.c
index 33270d9a4a..89d2ae6a88 100644
--- a/source4/lib/replace/test/testsuite.c
+++ b/source4/lib/replace/test/testsuite.c
@@ -146,7 +146,8 @@ static int test_strdup(void)
static int test_setlinebuf(void)
{
- /* FIXME */
+ printf("testing setlinebuf\n");
+ setlinebuf(stdout);
return true;
}