aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-22 15:48:05 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-22 15:48:05 +0000
commitc846780946fdbb691ab08750716b78fb962d19f1 (patch)
tree3d4038dda37a165722dceb897a3e050ba5f8c690 /src/transport/plugin_transport_wlan.c
parent08f8355f7465824373f6c3150b0a750f1a27758b (diff)
downloadgnunet-c846780946fdbb691ab08750716b78fb962d19f1.tar.gz
gnunet-c846780946fdbb691ab08750716b78fb962d19f1.zip
fixes
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index d3c7d2150..aaa11b80a 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -49,7 +49,7 @@
49 49
50#define FRAGMENT_QUEUE_SIZE 10 50#define FRAGMENT_QUEUE_SIZE 10
51 51
52#define DEBUG_wlan GNUNET_NO 52#define DEBUG_wlan GNUNET_YES
53 53
54#define MESSAGE_LENGHT_UNKNOWN -1 54#define MESSAGE_LENGHT_UNKNOWN -1
55#define NO_MESSAGE_OR_MESSAGE_FINISHED -2 55#define NO_MESSAGE_OR_MESSAGE_FINISHED -2
@@ -1994,7 +1994,7 @@ wlan_plugin_helper_read (void *cls,
1994static int 1994static int
1995wlan_transport_start_wlan_helper(struct Plugin *plugin, int testmode) 1995wlan_transport_start_wlan_helper(struct Plugin *plugin, int testmode)
1996{ 1996{
1997 1997 char * filename = "gnunet-transport-wlan-helper";
1998 plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES); 1998 plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES);
1999 if (plugin->server_stdout == NULL) 1999 if (plugin->server_stdout == NULL)
2000 return GNUNET_SYSERR; 2000 return GNUNET_SYSERR;
@@ -2005,12 +2005,12 @@ wlan_transport_start_wlan_helper(struct Plugin *plugin, int testmode)
2005 2005
2006#if DEBUG_wlan 2006#if DEBUG_wlan
2007 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2007 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2008 "Starting gnunet-wlan-helper process cmd: %s %s\n", "gnunet-wlan-helper", plugin->interface); 2008 "Starting gnunet-wlan-helper process cmd: %s %s %i\n", filename, plugin->interface, testmode);
2009#endif 2009#endif
2010 /* Start the server process */ 2010 /* Start the server process */
2011
2011 plugin->server_proc = GNUNET_OS_start_process(plugin->server_stdin, 2012 plugin->server_proc = GNUNET_OS_start_process(plugin->server_stdin,
2012 plugin->server_stdout, "gnunet-transport-wlan-helper", 2013 plugin->server_stdout, filename, plugin->interface, ((testmode==1)?"1":"0"), NULL);
2013 plugin->interface, testmode, NULL);
2014 if (plugin->server_proc == NULL) 2014 if (plugin->server_proc == NULL)
2015 { 2015 {
2016#if DEBUG_wlan 2016#if DEBUG_wlan
@@ -2077,7 +2077,6 @@ libgnunet_plugin_transport_wlan_init (void *cls)
2077 2077
2078 GNUNET_assert(cls !=NULL); 2078 GNUNET_assert(cls !=NULL);
2079 2079
2080 fprintf(stderr,"HERE");
2081 plugin = GNUNET_malloc (sizeof (struct Plugin)); 2080 plugin = GNUNET_malloc (sizeof (struct Plugin));
2082 plugin->env = env; 2081 plugin->env = env;
2083 plugin->pendingsessions = 0; 2082 plugin->pendingsessions = 0;