* Fix the ~ operator.
This commit is contained in:
@@ -404,6 +404,15 @@ void printMsg_(Verbosity level, const format & f)
|
||||
}
|
||||
|
||||
|
||||
void warnOnce(bool & haveWarned, const format & f)
|
||||
{
|
||||
if (!haveWarned) {
|
||||
printMsg(lvlError, format("warning: %1%") % f.str());
|
||||
haveWarned = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void readFull(int fd, unsigned char * buf, size_t count)
|
||||
{
|
||||
while (count) {
|
||||
|
||||
@@ -178,6 +178,8 @@ void printMsg_(Verbosity level, const format & f);
|
||||
|
||||
#define debug(f) printMsg(lvlDebug, f)
|
||||
|
||||
void warnOnce(bool & haveWarned, const format & f);
|
||||
|
||||
|
||||
/* Wrappers arount read()/write() that read/write exactly the
|
||||
requested number of bytes. */
|
||||
|
||||
Reference in New Issue
Block a user