summaryrefslogtreecommitdiff
path: root/usr.sbin/sa/usrdb.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-30 18:47:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-30 18:47:45 +0000
commitd1745b0530a8fcf3ec033c201f02d150ce37d224 (patch)
treef8459beda953766b340a1108e73d366c5a71e627 /usr.sbin/sa/usrdb.c
parent29338aa14b1501aa61aace6945c74a2a8809cc62 (diff)
minor tweaks
Diffstat (limited to 'usr.sbin/sa/usrdb.c')
-rw-r--r--usr.sbin/sa/usrdb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sa/usrdb.c b/usr.sbin/sa/usrdb.c
index 306efd65ff4..7eadbb89f77 100644
--- a/usr.sbin/sa/usrdb.c
+++ b/usr.sbin/sa/usrdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usrdb.c,v 1.5 2002/05/30 18:43:40 deraadt Exp $ */
+/* $OpenBSD: usrdb.c,v 1.6 2002/05/30 18:47:44 deraadt Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
* All rights reserved.
@@ -30,7 +30,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: usrdb.c,v 1.5 2002/05/30 18:43:40 deraadt Exp $";
+static char rcsid[] = "$Id: usrdb.c,v 1.6 2002/05/30 18:47:44 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -88,7 +88,7 @@ usracct_init()
warn("initializing user accounting stats");
error = -1;
break;
- }
+ }
serr = DB_SEQ(saved_usracct_db, &key, &data, R_NEXT);
if (serr < 0) {
@@ -154,7 +154,7 @@ usracct_add(const struct cmdinfo *ci)
newui.ui_mem += ci->ci_mem;
newui.ui_io += ci->ci_io;
- data.data = &newui;
+ data.data = &newui;
data.size = sizeof(newui);
rv = DB_PUT(usracct_db, &key, &data, 0);
if (rv < 0) {
@@ -272,7 +272,7 @@ uid_compare(const DBT *k1, const DBT *k2)
memcpy(&d1, k1->data, sizeof(d1));
memcpy(&d2, k2->data, sizeof(d2));
-
+
if (d1 < d2)
return -1;
else if (d1 == d2)