mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* Fix the ~ operator.
This commit is contained in:
parent
1f6616dabf
commit
2132d9ddeb
4 changed files with 24 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue