From bf94a866ee741567b4cf8e35d8e6a0565cdfe9bb Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 19 Jan 2008 13:50:27 +0100 Subject: [PATCH] Add __must_check annotation for mark_fd_nonblocking() and mark_fd_blocking(). --- fd.c | 4 ++-- fd.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fd.c b/fd.c index d90bd1a8..abad80a8 100644 --- a/fd.c +++ b/fd.c @@ -67,7 +67,7 @@ int para_select(int n, fd_set *readfds, fd_set *writefds, * * \return Standard. */ -int mark_fd_blocking(int fd) +__must_check int mark_fd_blocking(int fd) { int flags = fcntl(fd, F_GETFL); if (flags < 0) @@ -85,7 +85,7 @@ int mark_fd_blocking(int fd) * * \return Standard. */ -int mark_fd_nonblocking(int fd) +__must_check int mark_fd_nonblocking(int fd) { int flags = fcntl(fd, F_GETFL); if (flags < 0) diff --git a/fd.h b/fd.h index 6e333d91..6472c137 100644 --- a/fd.h +++ b/fd.h @@ -9,8 +9,8 @@ int file_exists(const char *); int para_select(int n, fd_set *readfds, fd_set *writefds, struct timeval *timeout_tv); -int mark_fd_nonblocking(int fd); -int mark_fd_blocking(int fd); +__must_check int mark_fd_nonblocking(int fd); +__must_check int mark_fd_blocking(int fd); void para_fd_set(int fd, fd_set *fds, int *max_fileno); __must_check int para_fgets(char *line, int size, FILE *f); void *para_mmap(size_t length, int prot, int flags, int fd, off_t offset); -- 2.39.2