mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
Workaround number of compiler warnings with newer MinGW version
This commit is contained in:
parent
702c349e5e
commit
9e72e1d356
@ -281,7 +281,7 @@ static void ndis_events_media_specific(struct ndis_events_data *events,
|
|||||||
SafeArrayGetElement(V_ARRAY(&vt), &k, &ch);
|
SafeArrayGetElement(V_ARRAY(&vt), &k, &ch);
|
||||||
*pos++ = ch;
|
*pos++ = ch;
|
||||||
}
|
}
|
||||||
wpa_hexdump(MSG_DEBUG, "MediaSpecificEvent", data, data_len);
|
wpa_hexdump(MSG_DEBUG, "MediaSpecificEvent", (u8 *) data, data_len);
|
||||||
|
|
||||||
VariantClear(&vt);
|
VariantClear(&vt);
|
||||||
|
|
||||||
@ -752,7 +752,8 @@ ndis_events_init(HANDLE *read_pipe, HANDLE *event_avail,
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr = CoCreateInstance(&CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER,
|
hr = CoCreateInstance(&CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER,
|
||||||
&IID_IWbemLocator, (LPVOID *) &events->pLoc);
|
&IID_IWbemLocator,
|
||||||
|
(LPVOID *) (void *) &events->pLoc);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
wpa_printf(MSG_ERROR, "CoCreateInstance() failed - returned "
|
wpa_printf(MSG_ERROR, "CoCreateInstance() failed - returned "
|
||||||
"0x%x", (int) hr);
|
"0x%x", (int) hr);
|
||||||
|
@ -463,12 +463,11 @@ void eloop_run(void)
|
|||||||
while (!eloop.terminate &&
|
while (!eloop.terminate &&
|
||||||
(eloop.timeout || eloop.reader_count > 0 ||
|
(eloop.timeout || eloop.reader_count > 0 ||
|
||||||
eloop.event_count > 0)) {
|
eloop.event_count > 0)) {
|
||||||
|
tv.sec = tv.usec = 0;
|
||||||
if (eloop.timeout) {
|
if (eloop.timeout) {
|
||||||
os_get_time(&now);
|
os_get_time(&now);
|
||||||
if (os_time_before(&now, &eloop.timeout->time))
|
if (os_time_before(&now, &eloop.timeout->time))
|
||||||
os_time_sub(&eloop.timeout->time, &now, &tv);
|
os_time_sub(&eloop.timeout->time, &now, &tv);
|
||||||
else
|
|
||||||
tv.sec = tv.usec = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
@ -659,7 +659,7 @@ static int wps_set_ie(struct wps_registrar *reg)
|
|||||||
static int wps_get_dev_password(struct wps_data *wps)
|
static int wps_get_dev_password(struct wps_data *wps)
|
||||||
{
|
{
|
||||||
const u8 *pin;
|
const u8 *pin;
|
||||||
size_t pin_len;
|
size_t pin_len = 0;
|
||||||
|
|
||||||
os_free(wps->dev_password);
|
os_free(wps->dev_password);
|
||||||
wps->dev_password = NULL;
|
wps->dev_password = NULL;
|
||||||
|
@ -412,7 +412,8 @@ static int ctrl_iface_parse(struct ctrl_iface_priv *priv, const char *params)
|
|||||||
return -1;
|
return -1;
|
||||||
if (!ConvertStringSecurityDescriptorToSecurityDescriptor(
|
if (!ConvertStringSecurityDescriptorToSecurityDescriptor(
|
||||||
t_sddl, SDDL_REVISION_1,
|
t_sddl, SDDL_REVISION_1,
|
||||||
(PSECURITY_DESCRIPTOR *) &priv->attr.lpSecurityDescriptor,
|
(PSECURITY_DESCRIPTOR *) (void *)
|
||||||
|
&priv->attr.lpSecurityDescriptor,
|
||||||
NULL)) {
|
NULL)) {
|
||||||
os_free(t_sddl);
|
os_free(t_sddl);
|
||||||
wpa_printf(MSG_ERROR, "CTRL: SDDL='%s' - could not convert to "
|
wpa_printf(MSG_ERROR, "CTRL: SDDL='%s' - could not convert to "
|
||||||
|
Loading…
Reference in New Issue
Block a user