diff --git a/amiga/object.c b/amiga/object.c
index 735ea30a7..0c848aa5f 100755
--- a/amiga/object.c
+++ b/amiga/object.c
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#include
+
#include
#include
#include
@@ -50,7 +52,7 @@ struct nsObject *AddObject(struct MinList *objlist, ULONG otype)
return(dtzo);
}
-void DelObjectInternal(struct nsObject *dtzo, BOOL free_obj)
+static void DelObjectInternal(struct nsObject *dtzo, BOOL free_obj)
{
Remove((struct Node *)dtzo);
if(dtzo->Type == AMINS_FONT) ami_font_close(dtzo->objstruct);
@@ -79,11 +81,10 @@ void FreeObjList(struct MinList *objlist)
if(IsMinListEmpty(objlist)) return;
node = (struct nsObject *)GetHead((struct List *)objlist);
- do
- {
+ do {
nnode=(struct nsObject *)GetSucc((struct Node *)node);
DelObject(node);
- }while(node=nnode);
+ } while((node=nnode));
FreeVec(objlist);
}