diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-21 09:59:54 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-21 09:59:54 +0000 |
commit | 00f573313416c8b3bfc8b32f157b0d64311382c0 (patch) | |
tree | 4a3150e60d2ba1a12e16f8e30ac63cb41b3963b2 /src/tipideed/send_file.c | |
parent | 289236dd5a7f05bd5253840fa03d358ca51406b0 (diff) | |
download | tipidee-00f573313416c8b3bfc8b32f157b0d64311382c0.tar.xz |
Minor refactors
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/send_file.c')
-rw-r--r-- | src/tipideed/send_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipideed/send_file.c b/src/tipideed/send_file.c index bcbd1c7..6e55c7b 100644 --- a/src/tipideed/send_file.c +++ b/src/tipideed/send_file.c @@ -164,7 +164,7 @@ void send_file_range (int fd, uint64_t offset, uint64_t n, char const *fn) tain deadline ; struct iovec v[2] ; ssize_t r ; - if (!n) goto flushit ; /* I know, I know, but do-while SUCKS */ + if (!n) goto flushit ; if (offset && lseek(fd, offset, SEEK_SET) == -1) strerr_diefu2sys(111, "lseek on ", fn) ; fillit: |