From 73b8f29a262705f5dc5314dc16f27819fc95db13 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 11 Mar 2004 17:49:00 +0000 Subject: Remove sync() calls that immediately precede databse close(). Since close() calls sync() itself the standalone sync() is a no-op. OK beck@ --- usr.sbin/spamdb/spamdb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/spamdb/spamdb.c b/usr.sbin/spamdb/spamdb.c index 8abd40545eb..67ee5e811b3 100644 --- a/usr.sbin/spamdb/spamdb.c +++ b/usr.sbin/spamdb/spamdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamdb.c,v 1.4 2004/03/01 17:47:07 beck Exp $ */ +/* $OpenBSD: spamdb.c,v 1.5 2004/03/11 17:48:59 millert Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -144,12 +144,10 @@ dbupdate(char *dbname, char *ip, int add) } } } - db->sync(db, 0); db->close(db); db = NULL; return (0); bad: - db->sync(db, 0); db->close(db); db = NULL; return(-1); @@ -208,12 +206,10 @@ dblist(char *dbname) gd.bcount, gd.pcount); } } - db->sync(db, 0); db->close(db); db = NULL; return(0); bad: - db->sync(db, 0); db->close(db); db = NULL; errx(1, "incorrect db format entry"); -- cgit v1.2.3