* mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation. (main): Add mad_init() and mad_finalize().
Этот коммит содержится в:
родитель
b5cfea00e1
Коммит
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>
|
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.
|
||||||
|
13
vfs/mcserv.c
13
vfs/mcserv.c
@ -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
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user