summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2012-08-30 11:03:57 +0000
committerjsg <jsg@openbsd.org>2012-08-30 11:03:57 +0000
commitc37b13e55af4e61ac4c67c9130026b5eb4fe006a (patch)
tree8c3321541d6da6c348a8263e034ec8148745c208
parentUse (rate / 15) as block size in off-line mode to ensure the (diff)
downloadwireguard-openbsd-c37b13e55af4e61ac4c67c9130026b5eb4fe006a.tar.xz
wireguard-openbsd-c37b13e55af4e61ac4c67c9130026b5eb4fe006a.zip
make a variable that can take a value of -1 signed to match what the
rest of the code expects. from brad
-rw-r--r--sys/dev/ic/ar5211.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c
index e4293692863..853b5b2aad6 100644
--- a/sys/dev/ic/ar5211.c
+++ b/sys/dev/ic/ar5211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5211.c,v 1.44 2009/06/02 12:39:02 reyk Exp $ */
+/* $OpenBSD: ar5211.c,v 1.45 2012/08/30 11:03:57 jsg Exp $ */
/*
* Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -2563,8 +2563,9 @@ ar5k_ar5211_rfregs(struct ath_hal *hal, HAL_CHANNEL *channel, u_int freq,
{
struct ar5k_eeprom_info *ee = &hal->ah_capabilities.cap_eeprom;
struct ar5k_ar5211_ini_rf rf[nitems(ar5211_rf)];
- u_int32_t ob, db, obdb, xpds, xpdp, x_gain;
+ u_int32_t ob, db, xpds, xpdp, x_gain;
u_int i;
+ int obdb;
bcopy(ar5211_rf, rf, sizeof(rf));
obdb = 0;