← Commit list

7710250e4

Denys Vlasenko
Denys Vlasenko
2022-12-13
SUCCESS Duration: 311s

Subject

libbb: shrink del_loop()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/loop.c+1 -1
@@ -71,7 +71,7 @@ int FAST_FUNC del_loop(const char *device)
fd = open(device, O_RDONLY);
if (fd < 0)
- return 1;
+ return fd; /* -1 */
rc = ioctl(fd, LOOP_CLR_FD, 0);
close(fd);