aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-17 20:26:51 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-17 20:26:51 +0000
commitc373637ec60d7e2b808a1c57d4e96ea17d444358 (patch)
treea4c223a4e351c8bbbe6bea95b37bebc1495f3f71 /src/util/configuration.c
parent2245d37ca9068fe9021c9f271d80fb0102107fbc (diff)
downloadgnunet-c373637ec60d7e2b808a1c57d4e96ea17d444358.tar.gz
gnunet-c373637ec60d7e2b808a1c57d4e96ea17d444358.zip
-modernize a bit more
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 531b24fe0..0c7078bda 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -813,12 +813,12 @@ GNUNET_CONFIGURATION_set_value_string (struct GNUNET_CONFIGURATION_Handle *cfg,
813 sec = findSection (cfg, section); 813 sec = findSection (cfg, section);
814 if (sec == NULL) 814 if (sec == NULL)
815 { 815 {
816 sec = GNUNET_malloc (sizeof (struct ConfigSection)); 816 sec = GNUNET_new (struct ConfigSection);
817 sec->name = GNUNET_strdup (section); 817 sec->name = GNUNET_strdup (section);
818 sec->next = cfg->sections; 818 sec->next = cfg->sections;
819 cfg->sections = sec; 819 cfg->sections = sec;
820 } 820 }
821 e = GNUNET_malloc (sizeof (struct ConfigEntry)); 821 e = GNUNET_new (struct ConfigEntry);
822 e->key = GNUNET_strdup (option); 822 e->key = GNUNET_strdup (option);
823 e->val = GNUNET_strdup (value); 823 e->val = GNUNET_strdup (value);
824 e->next = sec->entries; 824 e->next = sec->entries;