2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Free a structure created by CreateExtIO()
9 #include <proto/exec.h>
11 /*****************************************************************************
15 #include <proto/alib.h>
20 struct IORequest
* ioreq
)
23 Free a structure created by CreateExtIO().
26 ioreq - The returnvalue of CreateExtIO(). Must be
39 CreateStdIO(), CreateExtIO()
45 ******************************************************************************/
47 /* Erase some fields to enforce crashes */
48 ioreq
->io_Message
.mn_Node
.ln_Type
= -1L;
50 ioreq
->io_Device
= (struct Device
*)-1L;
51 ioreq
->io_Unit
= (struct Unit
*)-1L;
54 FreeMem(ioreq
,ioreq
->io_Message
.mn_Length
);