diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-07-26 13:49:26 +0200 |
|---|---|---|
| committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-07-26 14:50:26 +0200 |
| commit | 33f3c6fc4ca8810cee4c517594be725a26eec70c (patch) | |
| tree | c4b2f8c14357b1b4e979e01c3b516ddf254f3b98 /ffi/fccntl_wrap.h | |
| parent | 3947452e391b1f1fc3933b28ce97d86e3b555d84 (diff) | |
| download | pyouroboros-33f3c6fc4ca8810cee4c517594be725a26eec70c.tar.gz pyouroboros-33f3c6fc4ca8810cee4c517594be725a26eec70c.zip | |
This is basically a clean up pass to make sure all docstrings are
aligned. The copyright banners are replaced by SPDX statements. Also
did a general clean up on the comments. Passes pylint. No structural
changes.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Diffstat (limited to 'ffi/fccntl_wrap.h')
| -rw-r--r-- | ffi/fccntl_wrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi/fccntl_wrap.h b/ffi/fccntl_wrap.h index 0555e24..7cfc902 100644 --- a/ffi/fccntl_wrap.h +++ b/ffi/fccntl_wrap.h @@ -71,7 +71,7 @@ int flow_get_flags(int fd) { uint32_t flags; - if (fccntl(fd, FLOWGFLAGS, &flags)) + if (fccntl(fd, FLOWGFLAGS, &flags) < 0) return -EPERM; return (int) flags; @@ -86,7 +86,7 @@ int flow_get_frct_flags(int fd) { uint16_t flags; - if (fccntl(fd, FRCTGFLAGS, &flags)) + if (fccntl(fd, FRCTGFLAGS, &flags) < 0) return -EPERM; return (int) flags; |
