2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1996, 1997, 1998
5 * Sleepycat Software. All rights reserved.
10 static const char sccsid
[] = "@(#)log_compare.c 10.3 (Sleepycat) 4/10/98";
13 #ifndef NO_SYSTEM_INCLUDES
14 #include <sys/types.h>
24 log_compare(lsn0
, lsn1
)
25 const DB_LSN
*lsn0
, *lsn1
;
27 if (lsn0
->file
!= lsn1
->file
)
28 return (lsn0
->file
< lsn1
->file
? -1 : 1);
30 if (lsn0
->offset
!= lsn1
->offset
)
31 return (lsn0
->offset
< lsn1
->offset
? -1 : 1);