mirror of
https://github.com/NixOS/nix.git
synced 2025-12-17 06:21:06 +01:00
Fix FdSource::restart() warning
This commit is contained in:
parent
c338f9cc5d
commit
8d0e289fb9
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ void FdSource::restart()
|
||||||
if (!isSeekable)
|
if (!isSeekable)
|
||||||
throw Error("can't seek to the start of a file");
|
throw Error("can't seek to the start of a file");
|
||||||
buffer.reset();
|
buffer.reset();
|
||||||
read = bufPosOut = bufPosOut = 0;
|
read = bufPosIn = bufPosOut = 0;
|
||||||
int fd_ = fromDescriptorReadOnly(fd);
|
int fd_ = fromDescriptorReadOnly(fd);
|
||||||
if (lseek(fd_, 0, SEEK_SET) == -1)
|
if (lseek(fd_, 0, SEEK_SET) == -1)
|
||||||
throw SysError("seeking to the start of a file");
|
throw SysError("seeking to the start of a file");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue