]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix wpa_cipher_to_alg() return type
authorJoel Cunningham <joel.cunningham@me.com>
Mon, 19 Dec 2016 22:34:24 +0000 (16:34 -0600)
committerJouni Malinen <j@w1.fi>
Wed, 21 Dec 2016 10:48:16 +0000 (12:48 +0200)
commit04f02faac4eef09ab5cf27f5379530e3dd497ce4
tree544f8dee4a0567597a5eb29a0b5ec35fcfbb1927
parent0c8d7b085c4db792a6b175023aac58b797bea341
Fix wpa_cipher_to_alg() return type

wpa_cipher_to_alg() returns enumerated values from enum wpa_alg and all
uses of the return value treat it as enum wpa_alg (by either assigning
it to a variable of type enum wpa_alg or passing to a function that
expects enum wpa_alg).

This commit updates the return value to match the expected usage
(enum  wpa_alg) rather than int. This ensures the return value is
of the proper type and eliminates the following compiler warnings:

ARM RVCT (2.2):
  'Warning: #188-D: enumerated type mixed with another type'

Signed-off-by: Joel Cunningham <joel.cunningham@me.com>
src/common/wpa_common.c
src/common/wpa_common.h