aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-11-21 12:05:37 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-21 12:05:37 (GMT)
commit3b14fb0cabab55c64d9cbd47d4043a4a71abddfd (patch)
tree43d05ea3299e4ef3f33478530d50039c9ab064f5 /wpa_supplicant
parent8038591be2f49eb3851157f1d043706e761d54ac (diff)
downloadhostap-06-3b14fb0cabab55c64d9cbd47d4043a4a71abddfd.zip
hostap-06-3b14fb0cabab55c64d9cbd47d4043a4a71abddfd.tar.gz
hostap-06-3b14fb0cabab55c64d9cbd47d4043a4a71abddfd.tar.bz2
Silence printf() calls in wpa_gui to avoid stdout output from a GUI program
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_gui-qt4/main.cpp2
-rw-r--r--wpa_supplicant/wpa_gui-qt4/wpagui.cpp9
2 files changed, 10 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/main.cpp b/wpa_supplicant/wpa_gui-qt4/main.cpp
index 2bc468e..3ea8cdb 100644
--- a/wpa_supplicant/wpa_gui-qt4/main.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/main.cpp
@@ -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 */
diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
index f1861e4..cd700a1 100644
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
@@ -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)
{