(fileinit): Invalid cast sct_init(); a call couldn't possibly work.

Luckily, it isn't called.  Remove.
(ef_fileinit): Unused, remove.
This commit is contained in:
Markus Armbruster 2004-03-03 10:17:53 +00:00
parent 42290db8c8
commit 08e182e132
2 changed files with 1 additions and 3 deletions

View file

@ -81,8 +81,6 @@ struct empfile {
#define EF_NMAP 222 /* Kinda bogus, but used to describe a newdesmap #define EF_NMAP 222 /* Kinda bogus, but used to describe a newdesmap
instead of bmap or map. */ instead of bmap or map. */
typedef void (*ef_fileinit) (int, s_char *);
struct fileinit { struct fileinit {
void (*init) (int, s_char *); void (*init) (int, s_char *);
int (*postread) (int, s_char *); int (*postread) (int, s_char *);

View file

@ -44,7 +44,7 @@
#include "optlist.h" #include "optlist.h"
struct fileinit fileinit[EF_MAX] = { struct fileinit fileinit[EF_MAX] = {
{(ef_fileinit)sct_init, sct_postread, sct_prewrite, sect_ca}, {0, sct_postread, sct_prewrite, sect_ca},
{shp_init, shp_postread, shp_prewrite, ship_ca}, {shp_init, shp_postread, shp_prewrite, ship_ca},
{pln_init, pln_postread, pln_prewrite, plane_ca}, {pln_init, pln_postread, pln_prewrite, plane_ca},
{lnd_init, lnd_postread, lnd_prewrite, land_ca}, {lnd_init, lnd_postread, lnd_prewrite, land_ca},