1
1

* mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of

file to fix compilation.
(main): Add mad_init() and mad_finalize().
Этот коммит содержится в:
Andrew V. Samoilov 2002-07-25 20:33:31 +00:00
родитель b5cfea00e1
Коммит 3dc53f9d41
2 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -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> 2002-07-19 Pavel Roskin <proski@gnu.org>
* ftpfs.c: Don't use SUP.home, use SUP.cwdir. * ftpfs.c: Don't use SUP.home, use SUP.cwdir.

Просмотреть файл

@ -1225,6 +1225,9 @@ int main (int argc, char *argv [])
extern char *optarg; extern char *optarg;
int c; int c;
#ifdef HAVE_MAD
mad_init ();
#endif
while ((c = getopt (argc, argv, "fdiqp:v")) != -1){ while ((c = getopt (argc, argv, "fdiqp:v")) != -1){
switch (c){ switch (c){
case 'd': case 'd':
@ -1288,12 +1291,20 @@ int main (int argc, char *argv [])
pmap_unset (RPC_PROGNUM, RPC_PROGVER); pmap_unset (RPC_PROGNUM, RPC_PROGVER);
#endif #endif
} }
#ifdef HAVE_MAD
mad_finalize (__FILE__, __LINE__);
#endif
exit (return_code); exit (return_code);
} }
/* FIXME: This function should not be used in mcserv */ /* FIXME: This function should not be used in mcserv */
void vfs_die( char *m ) void vfs_die( char *m )
{ {
fprintf (stderr, m); fputs (m, stderr);
exit (1); exit (1);
} }
/* Here to avoid undefining of malloc and family */
#ifdef HAVE_MAD
#include "../src/mad.c"
#endif