diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-13 15:47:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-13 15:47:56 +0000 |
commit | 16fca3835b569ed8427d786e3cdb95dc01ceb342 (patch) | |
tree | b25aa6f30ec5d936da5bb48307f087c08a6a0772 /src/util/disk.c | |
parent | 3ec976177fd1a437f0a1a2411eef3620f619c8e3 (diff) | |
download | gnunet-16fca3835b569ed8427d786e3cdb95dc01ceb342.tar.gz gnunet-16fca3835b569ed8427d786e3cdb95dc01ceb342.zip |
-fix off-by-one so we can also select on FD 0 (stdin)
Diffstat (limited to 'src/util/disk.c')
-rw-r--r-- | src/util/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 1deefb7f1..074355c0a 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -1611,7 +1611,7 @@ GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, off_t lock_start, | |||
1611 | * @param fh file handle | 1611 | * @param fh file handle |
1612 | * @param unlock_start absolute position from where to unlock | 1612 | * @param unlock_start absolute position from where to unlock |
1613 | * @param unlock_end absolute position until where to unlock | 1613 | * @param unlock_end absolute position until where to unlock |
1614 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 1614 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
1615 | */ | 1615 | */ |
1616 | int | 1616 | int |
1617 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, off_t unlock_start, | 1617 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, off_t unlock_start, |