bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssize_t on MSVC


From: Bruno Haible
Subject: Re: ssize_t on MSVC
Date: Sat, 17 Sep 2011 17:40:43 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

I committed:
> --- tests/test-sys_socket.c.orig        Thu Sep 15 17:57:52 2011
> +++ tests/test-sys_socket.c     Thu Sep 15 16:06:27 2011
> @@ -30,6 +30,10 @@
>  /* Check that the 'socklen_t' type is defined.  */
>  socklen_t t1;
>  
> +/* Check that the 'size_t' and 'ssize_t' types are defined.  */
> +size_t t1;
> +ssize_t t2;
> +
>  /* Check that 'struct iovec' is defined.  */
>  struct iovec io;
>  
> 

This is obviously wrong: 't1' defined twice.


2011-09-17  Bruno Haible  <address@hidden>

        sys_socket tests: Fix recent mistake.
        * tests/test-sys_socket.c (t1): Avoid collision of identifiers.

--- tests/test-sys_socket.c.orig        Sat Sep 17 17:39:10 2011
+++ tests/test-sys_socket.c     Sat Sep 17 17:37:25 2011
@@ -31,8 +31,8 @@
 socklen_t t1;
 
 /* Check that the 'size_t' and 'ssize_t' types are defined.  */
-size_t t1;
-ssize_t t2;
+size_t t2;
+ssize_t t3;
 
 /* Check that 'struct iovec' is defined.  */
 struct iovec io;
-- 
In memoriam Estella Agsteribbe <http://en.wikipedia.org/wiki/Estella_Agsteribbe>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]