diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-10 23:33:08 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-10 23:33:08 +0000 |
commit | e24d3139c7efe4e0012de12102575a0fd66beb52 (patch) | |
tree | 2490fdb222efa756015f0a5e48d48120d1d0033d | |
parent | 6d3f0fa94c01b1fca8426b06653510b56ef043b6 (diff) | |
download | netsurf-e24d3139c7efe4e0012de12102575a0fd66beb52.tar.gz netsurf-e24d3139c7efe4e0012de12102575a0fd66beb52.tar.bz2 |
Fix warnings
-rwxr-xr-x | amiga/object.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> + #include <proto/exec.h> #include <exec/lists.h> #include <exec/nodes.h> @@ -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); } |