[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28128 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28128 - gnunet/src/util |
Date: |
Wed, 17 Jul 2013 22:26:51 +0200 |
Author: grothoff
Date: 2013-07-17 22:26:51 +0200 (Wed, 17 Jul 2013)
New Revision: 28128
Modified:
gnunet/src/util/configuration.c
Log:
-modernize a bit more
Modified: gnunet/src/util/configuration.c
===================================================================
--- gnunet/src/util/configuration.c 2013-07-17 20:26:24 UTC (rev 28127)
+++ gnunet/src/util/configuration.c 2013-07-17 20:26:51 UTC (rev 28128)
@@ -813,12 +813,12 @@
sec = findSection (cfg, section);
if (sec == NULL)
{
- sec = GNUNET_malloc (sizeof (struct ConfigSection));
+ sec = GNUNET_new (struct ConfigSection);
sec->name = GNUNET_strdup (section);
sec->next = cfg->sections;
cfg->sections = sec;
}
- e = GNUNET_malloc (sizeof (struct ConfigEntry));
+ e = GNUNET_new (struct ConfigEntry);
e->key = GNUNET_strdup (option);
e->val = GNUNET_strdup (value);
e->next = sec->entries;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28128 - gnunet/src/util,
gnunet <=