[Openvas-commits] r5670 - in trunk/openvas-libraries: . base
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 22 00:37:48 CEST 2009
Author: mattm
Date: 2009-10-22 00:37:45 +0200 (Thu, 22 Oct 2009)
New Revision: 5670
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/base/pidfile.c
Log:
* base/pidfile.c (pidfile_create, pidfile_remove): Add NULL end args.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2009-10-21 22:34:13 UTC (rev 5669)
+++ trunk/openvas-libraries/ChangeLog 2009-10-21 22:37:45 UTC (rev 5670)
@@ -1,3 +1,7 @@
+2009-10-22 Matthew Mundell <matthew.mundell at intevation.de>
+
+ * base/pidfile.c (pidfile_create, pidfile_remove): Add NULL end args.
+
2009-10-21 Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
* base/pidfile.c, base/pidfile.h: New.
@@ -23,7 +27,7 @@
* misc/comm.h: Adjusted proto for comm_init.
- * misc/ntp.h: Removed struct ntp_caps.
+ * misc/ntp.h: Removed struct ntp_caps.
2009-10-20 Felix Wolfsteller <felix.wolfsteller at intevation.de>
Modified: trunk/openvas-libraries/base/pidfile.c
===================================================================
--- trunk/openvas-libraries/base/pidfile.c 2009-10-21 22:34:13 UTC (rev 5669)
+++ trunk/openvas-libraries/base/pidfile.c 2009-10-21 22:37:45 UTC (rev 5670)
@@ -56,10 +56,10 @@
pidfile_create (gchar * daemon_name)
{
gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL);
- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid);
+ gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL);
FILE *pidfile = g_fopen (pidfile_name, "w");
- g_free(name_pid);
+ g_free (name_pid);
if (pidfile == NULL)
{
@@ -86,7 +86,7 @@
pidfile_remove (gchar * daemon_name)
{
gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL);
- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid);
+ gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL);
g_free(name_pid);
More information about the Openvas-commits
mailing list