From fc918885e03944afe47437c301a28bc1cba24d72 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 20 Aug 2007 20:10:04 +0000 Subject: sync.c: change ULONG_MAX to UINT32_MAX The value returned is uint32_t, not unsigned long. This creates a warning when compiling on 64-bit machines. --- sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sync.c') diff --git a/sync.c b/sync.c index fefdd86..88d882a 100644 --- 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; } } -- cgit v1.2.3