From: Andre Noll Date: Sat, 19 Jan 2008 12:50:27 +0000 (+0100) Subject: Add __must_check annotation for mark_fd_nonblocking() and mark_fd_blocking(). X-Git-Tag: v0.3.1~79 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=bf94a866ee741567b4cf8e35d8e6a0565cdfe9bb;p=paraslash.git Add __must_check annotation for mark_fd_nonblocking() and mark_fd_blocking(). --- 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);