* 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:
Andrew V. Samoilov 2002-07-25 20:33:31 +00:00
parent b5cfea00e1
commit 3dc53f9d41
2 changed files with 18 additions and 1 deletions

View File

@ -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.

View File

@ -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