mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
* mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation. (main): Add mad_init() and mad_finalize().
This commit is contained in:
parent
b5cfea00e1
commit
3dc53f9d41
@ -1,3 +1,9 @@
|
||||
2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
|
||||
file to fix compilation.
|
||||
(main): Add mad_init() and mad_finalize().
|
||||
|
||||
2002-07-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* ftpfs.c: Don't use SUP.home, use SUP.cwdir.
|
||||
|
13
vfs/mcserv.c
13
vfs/mcserv.c
@ -1225,6 +1225,9 @@ int main (int argc, char *argv [])
|
||||
extern char *optarg;
|
||||
int c;
|
||||
|
||||
#ifdef HAVE_MAD
|
||||
mad_init ();
|
||||
#endif
|
||||
while ((c = getopt (argc, argv, "fdiqp:v")) != -1){
|
||||
switch (c){
|
||||
case 'd':
|
||||
@ -1288,12 +1291,20 @@ int main (int argc, char *argv [])
|
||||
pmap_unset (RPC_PROGNUM, RPC_PROGVER);
|
||||
#endif
|
||||
}
|
||||
#ifdef HAVE_MAD
|
||||
mad_finalize (__FILE__, __LINE__);
|
||||
#endif
|
||||
exit (return_code);
|
||||
}
|
||||
|
||||
/* FIXME: This function should not be used in mcserv */
|
||||
void vfs_die( char *m )
|
||||
{
|
||||
fprintf (stderr, m);
|
||||
fputs (m, stderr);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Here to avoid undefining of malloc and family */
|
||||
#ifdef HAVE_MAD
|
||||
#include "../src/mad.c"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user