summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-02 22:27:40 +0000
committerJeremy Allison <jra@samba.org>2001-04-02 22:27:40 +0000
commit887ef3e12dc56b89b2284d42b16a81f03e15110b (patch)
tree93042d7c36a91c7f5ad0f82b65f85c2cbe49d7a4 /source/lib/replace.c
parent181d41572ceb17dc765d3c0f1a05934e35f56a61 (diff)
downloadsamba-887ef3e12dc56b89b2284d42b16a81f03e15110b.tar.gz
samba-887ef3e12dc56b89b2284d42b16a81f03e15110b.tar.xz
samba-887ef3e12dc56b89b2284d42b16a81f03e15110b.zip
include/ntdomain.h:
rpc_server/srv_lsa_hnd.c: Remove back pointer from policy handle list as the pipe that opened the handle may have been closed. We were dereferencing into something that had been closed. rpc_parse/parse_spoolss.c: Sync up with Gerald's changes in 2.2. lib/replace.c: Don't do proto on setlinebuf as it differs between systems. Jeremy.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index f252b848014..45c302f498a 100644
--- a/source/lib/replace.c
+++ b/source/lib/replace.c
@@ -377,8 +377,8 @@ char *rep_inet_ntoa(struct in_addr ip)
#endif /* HAVE_STRTOUL */
#ifndef HAVE_SETLINEBUF
-void setlinebuf(FILE *stream)
+ int setlinebuf(FILE *stream)
{
- setvbuf(stream, (char *)NULL, _IOLBF, 0);
+ return setvbuf(stream, (char *)NULL, _IOLBF, 0);
}
#endif /* HAVE_SETLINEBUF */