-more logging, avoid duplicate re-scheduling
[oweals/gnunet.git] / src / transport / test_http_common.c
index 9c619ea603a2c091893eba502e3286a7806c74b9..a21ddee1d1c7e089aed355927b33aefac298fea8 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2010 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 /**
  * @file transport/test_http_common.c
@@ -41,10 +41,10 @@ clean (struct SplittedHTTPAddress *addr)
 
 static int
 check (struct SplittedHTTPAddress *addr,
-       char * protocol,
-       char * host,
+       const char *protocol,
+       const char *host,
        int port,
-       char * path)
+       const char *path)
 {
   if (NULL == addr)
     return GNUNET_NO;
@@ -228,17 +228,18 @@ main (int argc, char *argv[])
   if (NULL != spa)
   {
     clean (spa);
+    spa = NULL;
     GNUNET_break (0);
   }
 
-  http_split_address ("http://");
+  spa = http_split_address ("http://");
   if (NULL != spa)
   {
     clean (spa);
     GNUNET_break (0);
   }
 
-  http_split_address ("://");
+  spa = http_split_address ("://");
   if (NULL != spa)
   {
     clean (spa);