mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Silence printf() calls in wpa_gui to avoid stdout output from a GUI program
This commit is contained in:
parent
8038591be2
commit
3b14fb0cab
@ -27,7 +27,7 @@ int main(int argc, char *argv[])
|
||||
#ifdef CONFIG_NATIVE_WINDOWS
|
||||
WSADATA wsaData;
|
||||
if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
|
||||
printf("Could not find a usable WinSock.dll\n");
|
||||
/* printf("Could not find a usable WinSock.dll\n"); */
|
||||
return -1;
|
||||
}
|
||||
#endif /* CONFIG_NATIVE_WINDOWS */
|
||||
|
@ -28,6 +28,15 @@
|
||||
#include "userdatarequest.h"
|
||||
#include "networkconfig.h"
|
||||
|
||||
#if 1
|
||||
/* Silence stdout */
|
||||
#define printf wpagui_printf
|
||||
static int wpagui_printf(const char *, ...)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
WpaGui::WpaGui(QWidget *parent, const char *, Qt::WFlags)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user