diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 23:33:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 23:33:47 +0000 |
commit | 9c7784e5f3c4e3e1f6d8ede0e20d2993e9c01c08 (patch) | |
tree | 20bd07003fa92d1c6a089c85261b617029125949 /package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch | |
parent | 39370cbe25809c2b613fe19ff731e8e9022e4934 (diff) | |
download | master-31e0f0ae-9c7784e5f3c4e3e1f6d8ede0e20d2993e9c01c08.tar.gz master-31e0f0ae-9c7784e5f3c4e3e1f6d8ede0e20d2993e9c01c08.tar.bz2 master-31e0f0ae-9c7784e5f3c4e3e1f6d8ede0e20d2993e9c01c08.zip |
hostapd: update hostapd to 2015-03-25
madwifi was dropped upstream, can't find it anywhere in OpenWrt
either, thus finally burrying madwifi.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45045
Diffstat (limited to 'package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch')
-rw-r--r-- | package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch b/package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch deleted file mode 100644 index 51ad1c4d70..0000000000 --- a/package/network/services/hostapd/patches/700-Add-os_snprintf_error-helper.patch +++ /dev/null @@ -1,29 +0,0 @@ -Add os_snprintf_error() helper - -This can be used to check os_snprintf() return value more consistently. - -Signed-off-by: Jouni Malinen <j@w1.fi> ---- - src/utils/os.h | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/utils/os.h b/src/utils/os.h -index b9247d8..77250d6 100644 ---- a/src/utils/os.h -+++ b/src/utils/os.h -@@ -549,6 +549,12 @@ char * os_strdup(const char *s); - #endif /* OS_NO_C_LIB_DEFINES */ - - -+static inline int os_snprintf_error(size_t size, int res) -+{ -+ return res < 0 || (unsigned int) res >= size; -+} -+ -+ - static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size) - { - if (size && nmemb > (~(size_t) 0) / size) --- -2.1.3 - |