X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/8656dc507aee9c5dcb3a6ad876565f5fcac425ae..e8293f011ddae012752e35f0cc36e9a12665fbf2:/sel.c diff --git a/sel.c b/sel.c index 5dede9b..c174b9a 100644 --- a/sel.c +++ b/sel.c @@ -7,7 +7,7 @@ * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,12 +15,12 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * mLib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, @@ -200,7 +200,7 @@ void sel_addtimer(sel_state *s, sel_timer *t, t->pend = 0; /* --- More line noise --- */ - + while (*tt && TV_CMP(&(*tt)->tv, <, tv)) tt = &(*tt)->next; t->next = *tt; @@ -275,14 +275,14 @@ void sel_rmhook(sel_hook *h) /* --- @sel_fdmerge@ --- * * - * Arguments: @fd_set *dest@ = destination FD set - * @fd_set *fd@ = pointer to set to merge - * @int maxfd@ = highest numbered descriptor in @fd@ + 1 + * Arguments: @fd_set *dest@ = destination FD set + * @fd_set *fd@ = pointer to set to merge + * @int maxfd@ = highest numbered descriptor in @fd@ + 1 * - * Returns: Actual highest numbered descriptor. + * Returns: Actual highest numbered descriptor. * - * Use: Merges file descriptor sets, and returns an accurate @maxfd@ - * value. + * Use: Merges file descriptor sets, and returns an accurate @maxfd@ + * value. */ int sel_fdmerge(fd_set *dest, fd_set *fd, int maxfd) @@ -353,7 +353,7 @@ int sel_select(sel_state *s) } /* --- Run the @select@ call --- */ - + if ((err = select(a.maxfd, &a.fd[SEL_READ], &a.fd[SEL_WRITE], &a.fd[SEL_EXC], a.tvp)) < 0) {