gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28685 - msh/src


From: gnunet
Subject: [GNUnet-SVN] r28685 - msh/src
Date: Fri, 16 Aug 2013 15:21:59 +0200

Author: harsha
Date: 2013-08-16 15:21:59 +0200 (Fri, 16 Aug 2013)
New Revision: 28685

Modified:
   msh/src/msh.c
   msh/src/mshd-server.c
   msh/src/mshd_pmonitor.c
Log:
- fix compile warnings


Modified: msh/src/msh.c
===================================================================
--- msh/src/msh.c       2013-08-16 13:13:45 UTC (rev 28684)
+++ msh/src/msh.c       2013-08-16 13:21:59 UTC (rev 28685)
@@ -413,12 +413,9 @@
   msg->header.type = htons (MSH_MTYPE_CMD_STREAM_STDIN);
   (void) memcpy (msg->data, recv_buf, size);
   queue_message (&ctx_remote, &msg->header);
-
- reschedule:
   task_fwd_stdin = 
       GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
                                       fh_stdin, &fwd_stdin, NULL);
-  return;
 }
 
 

Modified: msh/src/mshd-server.c
===================================================================
--- msh/src/mshd-server.c       2013-08-16 13:13:45 UTC (rev 28684)
+++ msh/src/mshd-server.c       2013-08-16 13:21:59 UTC (rev 28685)
@@ -107,7 +107,7 @@
    * input buffer.  Data from this buffer is written to proc's STDIN when it is
    * available for writing.
    */
-  void *buf;
+  char *buf;
 
   /**
    * The size of the input buffer
@@ -467,9 +467,8 @@
   GNUNET_assert (NULL != ctx);
   msg = (const struct MSH_MSG_Challenge *) message;
   LOG_DEBUG ("Challenge nonce: %104s\n", msg->salt.encoding);
-  GNUNET_assert (GNUNET_OK == 
-                 GNUNET_CRYPTO_hash_from_string (msg->salt.encoding,
-                                                 &salt));
+  GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_hash_from_string 
+                 ((const char *) msg->salt.encoding, &salt));
   auth_challenge_cred (&salt, &cred);
   reply = GNUNET_malloc (sizeof (struct MSH_MSG_ChallengeResponse));
   reply->header.size = htons (sizeof (struct MSH_MSG_ChallengeResponse));

Modified: msh/src/mshd_pmonitor.c
===================================================================
--- msh/src/mshd_pmonitor.c     2013-08-16 13:13:45 UTC (rev 28684)
+++ msh/src/mshd_pmonitor.c     2013-08-16 13:21:59 UTC (rev 28685)
@@ -284,4 +284,5 @@
                  GNUNET_CONTAINER_multihashmap32_remove 
                  (map, (uint32_t) pid, ctx));
   GNUNET_free (ctx);
+  return GNUNET_OK;
 }




reply via email to

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