sync.c: change ULONG_MAX to UINT32_MAX
authorH. Peter Anvin <hpa@zytor.com>
Mon, 20 Aug 2007 20:10:04 +0000 (20:10 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 20 Aug 2007 20:10:04 +0000 (20:10 +0000)
The value returned is uint32_t, not unsigned long.  This creates a
warning when compiling on 64-bit machines.

sync.c

diff --git a/sync.c b/sync.c
index fefdd86..88d882a 100644 (file)
--- a/sync.c
+++ b/sync.c
@@ -108,6 +108,6 @@ uint32_t next_sync(uint32_t position, uint32_t *length)
     } else {
         if (length)
             *length = 0L;
-        return ULONG_MAX;
+        return UINT32_MAX;
     }
 }