2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1996-2001
5
* Sleepycat Software. All rights reserved.
10
static const char revid[] = "$Id: log_compare.c,v 11.5 2001/04/10 20:44:29 bostic Exp $";
13
#ifndef NO_SYSTEM_INCLUDES
14
#include <sys/types.h>
21
* Compare two LSN's; return 1, 0, -1 if first is >, == or < second.
23
* EXTERN: int log_compare __P((const DB_LSN *, const DB_LSN *));
26
log_compare(lsn0, lsn1)
27
const DB_LSN *lsn0, *lsn1;
29
if (lsn0->file != lsn1->file)
30
return (lsn0->file < lsn1->file ? -1 : 1);
32
if (lsn0->offset != lsn1->offset)
33
return (lsn0->offset < lsn1->offset ? -1 : 1);