[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [Patch] xfree() in mswindows.c
From: |
Tim Ruehsen |
Subject: |
Re: [Bug-wget] [Patch] xfree() in mswindows.c |
Date: |
Wed, 03 Dec 2014 15:06:21 +0100 |
User-agent: |
KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) |
Thanks, Gisle.
I pushed it.
Tim
On Wednesday 03 December 2014 13:49:18 Gisle Vanem wrote:
> The change of the 'xfree()' macro should be reflected
> in mswindows.c:
>
> --- Git-latest/src/mswindows.c 2014-12-01 17:42:20 +0000
> +++ mswindows.c 2014-12-03 14:43:17 +0000
> @@ -89,7 +89,7 @@
> static void
> ws_cleanup (void)
> {
> - xfree ((char*)exec_name);
> + xfree (exec_name);
> WSACleanup ();
> }
>
> -----------
>
> Otherwise gcc says:
> mswindows.c: In function 'ws_cleanup':
> mswindows.c:92:3: error: lvalue required as left operand of assignment
>
> Got unnoticed since I mostly use MSVC now.
signature.asc
Description: This is a digitally signed message part.