diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-08-30 16:14:37 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-08-30 16:14:37 +0000 |
commit | e24137f98ce3a12bef76f04a4f7e60c4c7dbd9b8 (patch) | |
tree | 088f7fb8fd3c835f50946757ae1227190df78d41 /usr.sbin | |
parent | d9208f7db5c2e4b0b79596ea5d82766329b1858c (diff) |
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@.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sa/usrdb.c | 4 |
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)); |