Compilation error: some mhl_* remainders

David Sterba dave at jikos.cz
Tue Feb 17 16:05:16 UTC 2009


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 at 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;




More information about the mc-devel mailing list