Fix warnings

This commit is contained in:
Chris Young 2014-11-10 23:33:08 +00:00
parent 6d3f0fa94c
commit e24d3139c7

View File

@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdlib.h>
#include <proto/exec.h> #include <proto/exec.h>
#include <exec/lists.h> #include <exec/lists.h>
#include <exec/nodes.h> #include <exec/nodes.h>
@ -50,7 +52,7 @@ struct nsObject *AddObject(struct MinList *objlist, ULONG otype)
return(dtzo); return(dtzo);
} }
void DelObjectInternal(struct nsObject *dtzo, BOOL free_obj) static void DelObjectInternal(struct nsObject *dtzo, BOOL free_obj)
{ {
Remove((struct Node *)dtzo); Remove((struct Node *)dtzo);
if(dtzo->Type == AMINS_FONT) ami_font_close(dtzo->objstruct); if(dtzo->Type == AMINS_FONT) ami_font_close(dtzo->objstruct);
@ -79,11 +81,10 @@ void FreeObjList(struct MinList *objlist)
if(IsMinListEmpty(objlist)) return; if(IsMinListEmpty(objlist)) return;
node = (struct nsObject *)GetHead((struct List *)objlist); node = (struct nsObject *)GetHead((struct List *)objlist);
do do {
{
nnode=(struct nsObject *)GetSucc((struct Node *)node); nnode=(struct nsObject *)GetSucc((struct Node *)node);
DelObject(node); DelObject(node);
}while(node=nnode); } while((node=nnode));
FreeVec(objlist); FreeVec(objlist);
} }