[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [Patch] xfree() in mswindows.c
From: |
Gisle Vanem |
Subject: |
[Bug-wget] [Patch] xfree() in mswindows.c |
Date: |
Wed, 03 Dec 2014 13:49:18 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30 |
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.
--
--gv
- [Bug-wget] [Patch] xfree() in mswindows.c,
Gisle Vanem <=