/*static char *SCCSID = "@(#)freeini1.c	6.1 90/11/18";*/
/*static char *SCCSID = "@(#)freeini1.c      13.2 90/01/25";*/
#define INIT2 INIT2
#define INCL_DOSERRORS
#include <os2.h>
#include <fsd.h>
#include <fsh.h>
#include "const.h"
#include "misc.h"
#include "buf.h"
#include "chain.h"
#include "dir.h"
#include "volume.h"
#include "storage.h"
#include "tables.h"
#include "lw.h"
#include "frame.h"
#include "fsdata.h"
#include "pr_fsini.h"
#include "pr_debug.h"


/*
 ***	FreeInit1 - frees INIT_SEG1
 */

USHORT far
FreeInit1 ()
{
    void (far *pFunc) ();
    USHORT usRet;

    /* Now that we've used the init code we can free the segment. */

    pFunc = OurFSIni;

#ifdef DEBUG2
    dprintf ("FS_MOUNT: freeing init1, sel=0x%x\n", SELECTOROF (pFunc));
#endif

    usRet = FSH_SEGFREE (SELECTOROF (pFunc));
    if (usRet != NO_ERROR) {
	    return usRet;
    }
    fInit1Free = TRUE;
    return (NO_ERROR);
}
