summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2010-08-30 16:14:36 +0000
committermatthew <matthew@openbsd.org>2010-08-30 16:14:36 +0000
commit54105a83c3bd54c1a912ca43cbe600514a8fc907 (patch)
tree3ac7d5b73b640b8159971b57dcc2563eff76f4bd
parent- start fixing some entries after the airports were renamed (diff)
downloadwireguard-openbsd-54105a83c3bd54c1a912ca43cbe600514a8fc907.tar.xz
wireguard-openbsd-54105a83c3bd54c1a912ca43cbe600514a8fc907.zip
Use uid_t instead of u_long for comparing database keys in the usracct
summary database. Fixed in NetBSD, and pointed out on ICB by deraadt@.
-rw-r--r--usr.sbin/sa/usrdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sa/usrdb.c b/usr.sbin/sa/usrdb.c
index cd05b969df0..f597263461b 100644
--- a/usr.sbin/sa/usrdb.c
+++ b/usr.sbin/sa/usrdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usrdb.c,v 1.8 2009/10/27 23:59:54 deraadt Exp $ */
+/* $OpenBSD: usrdb.c,v 1.9 2010/08/30 16:14:36 matthew Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
* All rights reserved.
@@ -264,7 +264,7 @@ usracct_print(void)
static int
uid_compare(const DBT *k1, const DBT *k2)
{
- u_long d1, d2;
+ uid_t d1, d2;
memcpy(&d1, k1->data, sizeof(d1));
memcpy(&d2, k2->data, sizeof(d2));