8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / db / log / log_compare.c
blob816356813196eb29917325bd54923bea99a6a61b
1 /*-
2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1996, 1997
5 * Sleepycat Software. All rights reserved.
6 */
7 /*
8 * Copyright (c) 1998 by Sun Microsystems, Inc.
9 * All rights reserved.
12 #include "config.h"
14 #pragma ident "%Z%%M% %I% %E% SMI"
16 #ifndef lint
17 static const char sccsid[] = "@(#)log_compare.c 10.2 (Sleepycat) 6/21/97";
18 static const char sccsi2[] = "%W% (Sun) %G%";
19 #endif /* not lint */
21 #ifndef NO_SYSTEM_INCLUDES
22 #include <sys/types.h>
23 #endif
25 #include "db_int.h"
28 * log_compare --
29 * Compare two LSN's.
31 int
32 log_compare(lsn0, lsn1)
33 const DB_LSN *lsn0, *lsn1;
35 if (lsn0->file != lsn1->file)
36 return (lsn0->file < lsn1->file ? -1 : 1);
38 if (lsn0->offset != lsn1->offset)
39 return (lsn0->offset < lsn1->offset ? -1 : 1);
41 return (0);