From b7a89544d09455d7b2f4621c80b21ca457563f4a Mon Sep 17 00:00:00 2001 From: Keith Kanios Date: Thu, 12 Apr 2007 02:40:54 +0000 Subject: General push for x86-64 support, dubbed 0.99.00. --- sync.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sync.c') diff --git a/sync.c b/sync.c index 37bd221a..fefdd865 100644 --- a/sync.c +++ b/sync.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "sync.h" @@ -20,8 +21,8 @@ */ static struct Sync { - unsigned long pos; - unsigned long length; + uint32_t pos; + uint32_t length; } *synx; static int nsynx; @@ -49,7 +50,7 @@ void init_sync(void) nsynx = 0; } -void add_sync(unsigned long pos, unsigned long length) +void add_sync(uint32_t pos, uint32_t length) { int i; @@ -70,7 +71,7 @@ void add_sync(unsigned long pos, unsigned long length) } } -unsigned long next_sync(unsigned long position, unsigned long *length) +uint32_t next_sync(uint32_t position, uint32_t *length) { while (nsynx > 0 && synx[1].pos + synx[1].length <= position) { int i, j; -- cgit v1.2.1