gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19395 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r19395 - gnunet/src/transport
Date: Wed, 25 Jan 2012 16:09:34 +0100

Author: wachs
Date: 2012-01-25 16:09:34 +0100 (Wed, 25 Jan 2012)
New Revision: 19395

Modified:
   gnunet/src/transport/plugin_transport_http.c
   gnunet/src/transport/plugin_transport_http_server.c
Log:
- clang


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2012-01-25 15:02:55 UTC 
(rev 19394)
+++ gnunet/src/transport/plugin_transport_http.c        2012-01-25 15:09:34 UTC 
(rev 19395)
@@ -723,7 +723,7 @@
       GNUNET_CONTAINER_DLL_remove (plugin->head, plugin->tail, s);
 
       struct HTTP_Message *msg = s->msg_head;
-      struct HTTP_Message *tmp = s->msg_head;
+      struct HTTP_Message *tmp = NULL;
 
       while (msg != NULL)
       {
@@ -1495,7 +1495,7 @@
     GNUNET_CONTAINER_DLL_remove (plugin->head, plugin->tail, s);
 
     struct HTTP_Message *msg = s->msg_head;
-    struct HTTP_Message *tmp = s->msg_head;
+    struct HTTP_Message *tmp = NULL;
 
     while (msg != NULL)
     {

Modified: gnunet/src/transport/plugin_transport_http_server.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_server.c 2012-01-25 15:02:55 UTC 
(rev 19394)
+++ gnunet/src/transport/plugin_transport_http_server.c 2012-01-25 15:09:34 UTC 
(rev 19395)
@@ -407,9 +407,12 @@
 
   if (0 == strcmp (MHD_HTTP_METHOD_PUT, method))
     direction = _RECEIVE;
-  if (0 == strcmp (MHD_HTTP_METHOD_GET, method))
+  else if (0 == strcmp (MHD_HTTP_METHOD_GET, method))
     direction = _SEND;
+  else
+    GNUNET_break_op (0);
 
+
   if (check == GNUNET_NO)
     goto error;
 
@@ -672,7 +675,7 @@
     response =
         MHD_create_response_from_callback (-1, 32 * 1024, 
&server_send_callback,
                                            s, NULL);
-    res = MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
+    MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
     MHD_destroy_response (response);
     return MHD_YES;
   }
@@ -714,7 +717,6 @@
         {
           s->msg_tk = GNUNET_SERVER_mst_create (&server_receive_mst_cb, s);
         }
-        res =
             GNUNET_SERVER_mst_receive (s->msg_tk, s, upload_data,
                                        *upload_data_size, GNUNET_NO, 
GNUNET_NO);
 
@@ -781,7 +783,7 @@
                       void **httpSessionCache)
 {
   struct ServerConnection *sc = *httpSessionCache;
-  struct ServerConnection *tc = *httpSessionCache;
+  struct ServerConnection *tc = NULL;
   struct Session *s = NULL;
   struct Session *t = NULL;
   struct Plugin *plugin = NULL;
@@ -1250,7 +1252,7 @@
 #endif
     t = s->next;
     struct HTTP_Message *msg = s->msg_head;
-    struct HTTP_Message *tmp = s->msg_head;
+    struct HTTP_Message *tmp = NULL;
 
     while (msg != NULL)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]