aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-12-30 22:43:52 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-12-30 22:43:52 +0000
commit3809a554279d1685b1c12163098355a3a55d664d (patch)
treeefb619e68756960821ff3ad667a1452db9add7f7 /src/util/service.c
parent48d16551d055d3dab931c7a8b5b27930a681e88a (diff)
-LRN: use FOPEN/CLOSE instead of fopen/close - #2051
git-svn-id: https://gnunet.org/svn/gnunet@18856 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/service.c b/src/util/service.c
index ebdf2c61a9..8235830c99 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -1351,7 +1351,7 @@ write_pid_file (struct GNUNET_SERVICE_Context *sctx, pid_t pid)
}
if (0 > FPRINTF (pidfd, "%u", pid))
LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "fprintf", pif);
- GNUNET_break (0 == fclose (pidfd));
+ GNUNET_break (0 == FCLOSE (pidfd));
if ((user != NULL) && (0 < strlen (user)))
GNUNET_DISK_file_change_owner (pif, user);
GNUNET_free_non_null (user);