remove trailing spaces
authorJim Meyering <meyering@redhat.com>
Wed, 1 Oct 2008 07:43:40 +0000 (09:43 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 1 Oct 2008 07:44:51 +0000 (09:44 +0200)
* NEWS: Likewise.
* lib/poll.c (poll): Likewise.
* lib/sys_socket.in.h (SHUT_RDWR): Likewise.
* lib/winsock.c (rpl_close): Likewise.
* m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
* modules/yield: Likewise.
* tests/test-poll.c (connect_to_socket, poll1): Likewise.
* tests/test-sys_select.c (connect_to_socket): Likewise.

ChangeLog
NEWS
lib/poll.c
lib/sys_socket.in.h
lib/winsock.c
m4/memcmp.m4
modules/yield
tests/test-poll.c
tests/test-sys_select.c

index 5ef986eacd9eacedd8e46e2872d005fcbffe9ede..6bccdbd24fd5f8b487a2bf385c357b81b729553d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2008-10-01  Jim Meyering  <meyering@redhat.com>
 
+       remove trailing spaces
+       * NEWS: Likewise.
+       * lib/poll.c (poll): Likewise.
+       * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
+       * lib/winsock.c (rpl_close): Likewise.
+       * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
+       * modules/yield: Likewise.
+       * tests/test-poll.c (connect_to_socket, poll1): Likewise.
+       * tests/test-sys_select.c (connect_to_socket): Likewise.
+
        fts.c: adjust a new interface to be more generally useful
        * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
        (fts_build): Adjust caller.
@@ -10,7 +20,7 @@
        * tests/test-cond.c: New file.
 
 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * modules/cond (Dependencies): Add errno, time.
        * lib/glthread/cond.h: Include <time.h>.
        across platforms.
 
 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
 
 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * modules/tls-tests (Depends-on): Add thread, yield.
        (configure.ac): Remove all checks.
@@ -34,7 +44,7 @@
        (test_tls): Pass an additional NULL argument to gl_thread_join.
 
 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * modules/lock-tests (Depends-on): Add thread, yield.
        (configure.ac): Remove all checks.
diff --git a/NEWS b/NEWS
index c2624a3a46c01a0d4b55eeb1127a7688b0e42676..ef04cf4403b63a19af47bcdcb8918cce64f24e14 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -22,7 +22,7 @@ Date        Modules         Changes
                             will simply improve your code's portability
                             between POSIX platforms and Windows.  In
                             particular, you will be able to use ioctl and
-                            close instead of ioctlsocket and closesocket, 
+                            close instead of ioctlsocket and closesocket,
                             and test errno instead of WSAGetLastError ().
                             On the other hand, you have to audit your code to
                             remove usage of these Winsock-specific functions.
index b4001283d38bcde1c0d56f077dd9f6b83f47bb95..da0484482b54aad20b602df44e7480d7b9693482 100644 (file)
@@ -543,7 +543,7 @@ poll (pfd, nfd, timeout)
            ev.lNetworkEvents |= FD_WRITE | FD_CONNECT;
          if (FD_ISSET ((SOCKET) h, &xfds))
            ev.lNetworkEvents |= FD_OOB;
-            
+
           happened = win32_compute_revents_socket ((SOCKET) h, pfd[i].events,
                                                   ev.lNetworkEvents);
         }
index 145408fd65e72e038b9d600966d261024489a999..6d7dc7669de7c968cf240c6e86920b8cae1d2437 100644 (file)
@@ -109,7 +109,7 @@ typedef int socklen_t;
 extern "C" {
 #  endif
 
-/* Re-define FD_ISSET to avoid a WSA call while we are not using 
+/* Re-define FD_ISSET to avoid a WSA call while we are not using
    network sockets.  */
 static inline int
 rpl_fd_isset (int fd, fd_set * set)
index 0a991994b420dbbf216c9eb70bb85295218c74e9..535145a813aac869044cba26876e33a4c5ecb796 100644 (file)
@@ -61,7 +61,7 @@ rpl_close (int fd)
       /* FIXME: other applications, like squid, use an undocumented
         _free_osfhnd free function.  Instead, here we just close twice
         the file descriptor.  I could not get the former to work
-        (pb, Sep 22 2008).  */ 
+        (pb, Sep 22 2008).  */
       int r = closesocket (sock);
       _close (fd);
       return r;
index a8d87b930a7ac06f59265cdfbd79a5f4a242debe..c995a3298782477841963a6e0b0dc20c495d85ca 100644 (file)
@@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_MEMCMP],
                                ]], [[int ret = memcmp ("foo", "bar", 0);]])],
                        [ac_cv_func_memcmp_working=yes],
                        [ac_cv_func_memcmp_working=no])])
-  fi 
+  fi
   AC_FUNC_MEMCMP
   dnl Note: AC_FUNC_MEMCMP does AC_LIBOBJ(memcmp).
   if test $ac_cv_func_memcmp_working = no; then
index 6eb7580e8d40bc43e86bd91f4b4a191be2aafc21..24ffcdd2434f3623f6e45a63ad44b28eae143e56 100644 (file)
@@ -12,7 +12,7 @@ configure.ac:
 gl_YIELD
 
 Makefile.am:
-lib_SOURCES += glthread/yield.h 
+lib_SOURCES += glthread/yield.h
 
 Include:
 "glthread/yield.h"
index b0cdb6087a7ce2d19a3371428d719b04ef3a2183..bbfefe43e0047848cac5ccc34142a333c8ea13e0 100644 (file)
@@ -130,10 +130,10 @@ connect_to_socket (int blocking)
 #ifdef WIN32_NATIVE
       unsigned long iMode = 1;
       ioctl (s, FIONBIO, (char *) &iMode);
+
 #elif defined F_GETFL
       int oldflags = fcntl (s, F_GETFL, NULL);
+
       if (!(oldflags & O_NONBLOCK))
         fcntl (s, F_SETFL, oldflags | O_NONBLOCK);
 #endif
@@ -161,7 +161,7 @@ poll1 (int fd, int ev, int time)
   pfd.fd = fd;
   pfd.events = ev;
   pfd.revents = 0;
-  r = poll (&pfd, 1, time);  
+  r = poll (&pfd, 1, time);
   if (r < 0)
     return r;
 
index 053b6c68d713f764ac0f5a02192a7252d6cba404..a4e0f3e580a7be395eef9bcd9e3213d9529aeaf9 100644 (file)
@@ -135,10 +135,10 @@ connect_to_socket (int blocking)
 #ifdef WIN32_NATIVE
       unsigned long iMode = 1;
       ioctl (s, FIONBIO, (char *) &iMode);
+
 #elif defined F_GETFL
       int oldflags = fcntl (s, F_GETFL, NULL);
+
       if (!(oldflags & O_NONBLOCK))
         fcntl (s, F_SETFL, oldflags | O_NONBLOCK);
 #endif