gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r15398 - gnunet/src/monkey


From: gnunet
Subject: [GNUnet-SVN] r15398 - gnunet/src/monkey
Date: Fri, 3 Jun 2011 15:45:17 +0200

Author: grothoff
Date: 2011-06-03 15:45:17 +0200 (Fri, 03 Jun 2011)
New Revision: 15398

Modified:
   gnunet/src/monkey/action_api.c
   gnunet/src/monkey/gnunet_monkey_action.h
Log:
fix

Modified: gnunet/src/monkey/action_api.c
===================================================================
--- gnunet/src/monkey/action_api.c      2011-06-02 09:27:35 UTC (rev 15397)
+++ gnunet/src/monkey/action_api.c      2011-06-03 13:45:17 UTC (rev 15398)
@@ -208,7 +208,6 @@
 {
   struct Expression *faultyExpression = NULL;
   struct Expression *tmp;
-  int expressionLength = 0;
 
 
   faultyExpression = getFaultyExpression (cntxt);
@@ -448,17 +447,18 @@
 static const char *
 variableListToString (struct Variable *head)
 {
-  const char *string = GNUNET_malloc (200 * sizeof (char));
-  const char *strTmp;
+  char *string = GNUNET_malloc (200 * sizeof (char));
+  char *strTmp;
   struct Variable *tmp = head;
-  asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value);
+
+  GNUNET_asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value);
   strcpy (string, strTmp);
-  free (strTmp);
+  GNUNET_free (strTmp);
   while (NULL != tmp)
     {
-      asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value);
+      GNUNET_asprintf (&strTmp, "%s = %s\n", tmp->name, tmp->value);
       strcat (string, strTmp);
-      free (strTmp);
+      GNUNET_free (strTmp);
       tmp = tmp->next;
     }
   return string;

Modified: gnunet/src/monkey/gnunet_monkey_action.h
===================================================================
--- gnunet/src/monkey/gnunet_monkey_action.h    2011-06-02 09:27:35 UTC (rev 
15397)
+++ gnunet/src/monkey/gnunet_monkey_action.h    2011-06-03 13:45:17 UTC (rev 
15398)
@@ -51,7 +51,7 @@
 struct Variable
 {
   struct Variable *next;
-  struct Varialble *prev;
+  struct Variable *prev;
   const char *name;
   const char *value;
 };




reply via email to

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