From 8541d27fce95f1f6a4a6c89bcbc09503ff7ea092 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Nov 2012 15:01:02 +0100 Subject: Don't use std::cerr in a few places Slightly scared of using std::cerr in a vforked process... --- src/libutil/util.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 90413b0efe04..87b63f6e998a 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -148,7 +148,9 @@ void printMsg_(Verbosity level, const format & f); void warnOnce(bool & haveWarned, const format & f); -extern void (*writeToStderr) (const unsigned char * buf, size_t count); +void writeToStderr(const string & s); + +extern void (*_writeToStderr) (const unsigned char * buf, size_t count); /* Wrappers arount read()/write() that read/write exactly the -- cgit 1.4.1