Created
January 17, 2014 19:03
-
-
Save Roguelazer/8479401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/network.c 2006-01-19 14:46:23.000000000 -0800 | |
+++ src/network.c.new 2014-01-17 11:02:10.000000000 -0800 | |
@@ -21,10 +21,11 @@ | |
*/ | |
#include "system.h" | |
#include "network.h" | |
#include "connection.h" | |
#include "afindep.h" | |
+#include "parser.h" | |
#ifdef ENABLE_BLUEZ | |
#include "bluez.h" | |
#endif/*ENABLE_BLUEZ*/ | |
#include <assert.h> | |
@@ -290,17 +291,20 @@ | |
assert(sock >= 0); | |
/* announce the socket in very verbose mode */ | |
switch (socktype) { | |
case SOCK_STREAM: | |
- warning(_("using stream socket")); | |
+ if (very_verbose_mode()) | |
+ warning(_("using stream socket")); | |
break; | |
case SOCK_DGRAM: | |
- warning(_("using datagram socket")); | |
+ if (very_verbose_mode()) | |
+ warning(_("using datagram socket")); | |
break; | |
case SOCK_SEQPACKET: | |
- warning(_("using seqpacket socket")); | |
+ if (very_verbose_mode()) | |
+ warning(_("using seqpacket socket")); | |
break; | |
default: | |
fatal_internal("unsupported socket type %d", socktype); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment