projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add __must_check annotation for mark_fd_nonblocking() and mark_fd_blocking().
[paraslash.git]
/
fd.c
diff --git
a/fd.c
b/fd.c
index 8f506ff83044dd23ec098961d9607908bc7ce402..abad80a86ce368660c1ed3b88a1c0e088488a422 100644
(file)
--- a/
fd.c
+++ b/
fd.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2006-200
7
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-200
8
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-67,7
+67,7
@@
int para_select(int n, fd_set *readfds, fd_set *writefds,
*
* \return Standard.
*/
*
* \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)
{
int flags = fcntl(fd, F_GETFL);
if (flags < 0)
@@
-85,7
+85,7
@@
int mark_fd_blocking(int fd)
*
* \return Standard.
*/
*
* \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)
{
int flags = fcntl(fd, F_GETFL);
if (flags < 0)