diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-07-06 16:21:32 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-07-06 16:21:32 +0100 |
commit | 6d278450de112f97957b263efbefb3facc7880dc (patch) | |
tree | 135d29d730f7bcaeaa4d31a78fbbf9d59b38d125 | |
parent | d09bb58bfecd0c91dd07f1d941c33b12b391ac06 (diff) | |
download | netsurf-6d278450de112f97957b263efbefb3facc7880dc.tar.gz netsurf-6d278450de112f97957b263efbefb3facc7880dc.tar.bz2 |
Amiga: squash warnings
-rw-r--r-- | frontends/amiga/font_cache.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/frontends/amiga/font_cache.c b/frontends/amiga/font_cache.c index 86e2381c0..b8039d22c 100644 --- a/frontends/amiga/font_cache.c +++ b/frontends/amiga/font_cache.c @@ -17,11 +17,13 @@ */ #include "amiga/os3support.h" -#include <string.h> #include <proto/timer.h> #include <proto/utility.h> +#include <string.h> +#include <stdlib.h> + #include "utils/log.h" #include "amiga/font.h" @@ -97,12 +99,12 @@ static void ami_font_cache_cleanup(struct MinList *ami_font_cache_list) { nnode=(struct nsObject *)GetSucc((struct Node *)node); fnode = node->objstruct; - GetSysTime(&curtime); - SubTime(&curtime, &fnode->lastused); + GetSysTime((struct timeval *)&curtime); + SubTime((struct timeval *)&curtime, (struct timeval *)&fnode->lastused); if(curtime.Seconds > 300) { NSLOG(netsurf, INFO, - "Freeing %s not used for %ld seconds", + "Freeing %s not used for %d seconds", node->dtz_Node.ln_Name, curtime.Seconds); DelObject(node); @@ -152,7 +154,7 @@ struct ami_font_cache_node *ami_font_cache_locate(const char *font) return nodedata; } - NSLOG(netsurf, INFO, "Font cache miss: %s (%lx)", font, hash); + NSLOG(netsurf, INFO, "Font cache miss: %s (%x)", font, hash); return NULL; } |