Compilation error: some mhl_* remainders
- From: David Sterba <dave jikos cz>
- To: mc-devel gnome org
- Subject: Compilation error: some mhl_* remainders
- Date: Tue, 17 Feb 2009 17:05:16 +0100 (CET)
Hi,
compilation of master @ cc69f5d2784ab253d795d9c842a2eeec6a187eb5
fails with
screen.o: In function `show_free_space':
/home/dsterba/_dev/mc-build/src/screen.c:783: undefined reference to
`mhl_mem_free'
/home/dsterba/_dev/mc-build/src/screen.c:784: undefined reference to
`mhl_str_dup'
looks like a remainder of mhl removal.
I was not sure which branch should be taken as the reference for latest
development and tried origin/HEAD with same result. Patch below.
cheers,
dave
--
Fix compilation error
screen.o: In function `show_free_space':
/home/dsterba/_dev/mc-build/src/screen.c:783: undefined reference to
`mhl_mem_free'
/home/dsterba/_dev/mc-build/src/screen.c:784: undefined reference to
`mhl_str_dup'
Signed-off-by: David Sterba <dave jikos cz>
--
diff --git a/src/screen.c b/src/screen.c
index b069b17..0b8920e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -780,8 +780,8 @@ show_free_space (WPanel *panel)
char rpath[PATH_MAX];
init_my_statfs ();
- mhl_mem_free (old_cwd);
- old_cwd = mhl_str_dup (panel->cwd);
+ g_free (old_cwd);
+ old_cwd = g_strdup (panel->cwd);
if (mc_realpath (panel->cwd, rpath) == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]