/*
    Copyright (C) 1995-2007, The AROS Development Team. All rights reserved.

    Desc: amiga.lib function DeletePort()
*/
#include <proto/exec.h>

/*****************************************************************************

    NAME */
#include <exec/ports.h>
#include <proto/alib.h>

        void DeletePort (

/*  SYNOPSIS */
        struct MsgPort * mp)

/*  FUNCTION
        Free a message port created by CreatePort()

    INPUTS
        mp - The result of CreatePort()

    RESULT
        None.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO
        CreatePort(), exec.library/CreateMsgPort(), exec.library/DeleteMsgPort()

    INTERNALS

    HISTORY

******************************************************************************/
{
    if (mp->mp_Node.ln_Name)
        RemPort (mp);

    DeleteMsgPort (mp);
} /* DeletePort */

