diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-03-11 17:49:00 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-03-11 17:49:00 +0000 |
commit | 73b8f29a262705f5dc5314dc16f27819fc95db13 (patch) | |
tree | 8039313ead55a73d81cc2722a82bbea9d95604e7 /usr.sbin/spamdb | |
parent | 399fac6e9a5b28c4a2b401bd2e50fbc8ec2d71bd (diff) |
Remove sync() calls that immediately precede databse close(). Since
close() calls sync() itself the standalone sync() is a no-op. OK beck@
Diffstat (limited to 'usr.sbin/spamdb')
-rw-r--r-- | usr.sbin/spamdb/spamdb.c | 6 |
1 files changed, 1 insertions, 5 deletions
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"); |