From 416c2f5a713b93ba689a8cd1e038682a53e6bc17 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 30 Dec 2011 22:42:04 +0000 Subject: -LRN: use FPRINTF -- #2051 --- src/util/configuration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/configuration.c') diff --git a/src/util/configuration.c b/src/util/configuration.c index 41a4e1975..eb86d0496 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -309,7 +309,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg, sec = cfg->sections; while (sec != NULL) { - if (0 > fprintf (fp, "[%s]\n", sec->name)) + if (0 > FPRINTF (fp, "[%s]\n", sec->name)) { error = 1; break; @@ -327,7 +327,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg, pos[0] = '\\'; pos[1] = 'n'; } - if (0 > fprintf (fp, "%s = %s\n", ent->key, val)) + if (0 > FPRINTF (fp, "%s = %s\n", ent->key, val)) { error = 1; GNUNET_free (val); @@ -339,7 +339,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg, } if (error != 0) break; - if (0 > fprintf (fp, "\n")) + if (0 > FPRINTF (fp, "%s\n", "")) { error = 1; break; -- cgit v1.2.3