Fix prototypes to match the functions. The prototypes had `int' specified for

parameters or result where they should have been the corresponding enums.

gcc won't bitch on them but conceptually they are different and could be
stored in a different width. Compiling with pcc brought this to light.
This commit is contained in:
reinoud 2009-05-14 09:07:49 +00:00
parent 4b3a3e1885
commit 8aafc997af
3 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Id: ah_internal.h,v 1.2 2008/12/11 05:30:29 alc Exp $
* $Id: ah_internal.h,v 1.3 2009/05/14 09:07:49 reinoud Exp $
*/
#ifndef _ATH_AH_INTERAL_H_
#define _ATH_AH_INTERAL_H_
@ -516,7 +516,7 @@ extern u_int ath_hal_getctl(struct ath_hal *, HAL_CHANNEL *);
* based on the current regulatory domain for the specified
* channel.
*/
extern u_int ath_hal_getnfcheckrequired(struct ath_hal *, HAL_CHANNEL *);
extern HAL_BOOL ath_hal_getnfcheckrequired(struct ath_hal *, HAL_CHANNEL *);
/*
* Map a public channel definition to the corresponding

View File

@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Id: ar5210.h,v 1.1.1.1 2008/12/11 04:46:27 alc Exp $
* $Id: ar5210.h,v 1.2 2009/05/14 09:07:49 reinoud Exp $
*/
#ifndef _ATH_AR5210_H_
#define _ATH_AR5210_H_
@ -254,7 +254,7 @@ extern HAL_BOOL ar5210SetKeyCacheEntry(struct ath_hal *, uint16_t entry,
extern HAL_BOOL ar5210SetKeyCacheEntryMac(struct ath_hal *,
uint16_t, const uint8_t *);
extern HAL_BOOL ar5210SetPowerMode(struct ath_hal *, uint32_t powerRequest,
extern HAL_BOOL ar5210SetPowerMode(struct ath_hal *, HAL_POWER_MODE mode,
int setChip);
extern HAL_POWER_MODE ar5210GetPowerMode(struct ath_hal *);

View File

@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Id: ar5211.h,v 1.1.1.1 2008/12/11 04:46:31 alc Exp $
* $Id: ar5211.h,v 1.2 2009/05/14 09:07:49 reinoud Exp $
*/
#ifndef _ATH_AR5211_H_
#define _ATH_AR5211_H_
@ -284,7 +284,7 @@ extern HAL_BOOL ar5211SetKeyCacheEntry(struct ath_hal *, uint16_t entry,
extern HAL_BOOL ar5211SetKeyCacheEntryMac(struct ath_hal *,
uint16_t, const uint8_t *);
extern HAL_BOOL ar5211SetPowerMode(struct ath_hal *, uint32_t powerRequest,
extern HAL_BOOL ar5211SetPowerMode(struct ath_hal *, HAL_POWER_MODE mode,
int setChip);
extern HAL_POWER_MODE ar5211GetPowerMode(struct ath_hal *);