gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r3216 - branches/GNUnet-0.7.0/src/util


From: durner
Subject: [GNUnet-SVN] r3216 - branches/GNUnet-0.7.0/src/util
Date: Tue, 8 Aug 2006 08:35:18 -0700 (PDT)

Author: durner
Date: 2006-08-08 08:35:12 -0700 (Tue, 08 Aug 2006)
New Revision: 3216

Modified:
   branches/GNUnet-0.7.0/src/util/logging.c
Log:
use xmalloc

Modified: branches/GNUnet-0.7.0/src/util/logging.c
===================================================================
--- branches/GNUnet-0.7.0/src/util/logging.c    2006-08-07 05:30:11 UTC (rev 
3215)
+++ branches/GNUnet-0.7.0/src/util/logging.c    2006-08-08 15:35:12 UTC (rev 
3216)
@@ -272,7 +272,7 @@
   char * caplog;
 
   GNUNET_ASSERT(log != NULL);
-  caplog = strdup(log);
+  caplog = STRDUP(log);
   for (i=strlen(caplog)-1;i>=0;i--)
     caplog[i] = toupper(caplog[i]);
   i = LOG_NOTHING;
@@ -280,7 +280,7 @@
          (0 != strcmp(caplog, gettext(loglevels[i]))) &&
          (0 != strcmp(caplog, loglevels[i])) )
     i++;
-  free(caplog);
+  FREE(caplog);
   if (loglevels[i] == NULL)
     errexit(_("Invalid LOGLEVEL `%s' specified.\n"),
            log);
@@ -305,10 +305,10 @@
     = getConfigurationString(base,
                             "LOGLEVEL");
   if (loglevelname == NULL)
-    loglevelname = strdup("WARNING");
+    loglevelname = STRDUP("WARNING");
   loglevel__
     = getLoglevel(loglevelname);
-  free(loglevelname);
+  FREE(loglevelname);
   keepLog
     = getConfigurationInt(base,
                          "KEEPLOG");





reply via email to

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