From 804f5365e83c2115baa511bc61595bea12251c0a Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 29 Mar 2015 11:10:50 +0000 Subject: [PATCH] - ircd.c:write_pidfile(): removed the PID from the error message git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.2.x@5736 82007160-df01-0410-b94d-b575c5fd34c7 --- src/ircd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ircd.c b/src/ircd.c index a4eefc27b..5234ee922 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -63,13 +63,12 @@ GeoIP *geoip_ctx; #endif -/* /quote set variables */ -struct SetOptions GlobalSetOptions; +struct SetOptions GlobalSetOptions; /* /quote set variables */ struct Counter Count; struct ServerState_t server_state; struct ServerStatistics ServerStats; struct timeval SystemTime; -struct Connection meConnection; /* That's also part of me */ +struct Connection meConnection; /* That's also part of me */ struct Client me = { .connection = &meConnection }; /* That's me */ char **myargv; @@ -317,8 +316,8 @@ write_pidfile(const char *filename) snprintf(buff, sizeof(buff), "%u\n", pid); if (fputs(buff, fb) == -1) - ilog(LOG_TYPE_IRCD, "Error writing %u to pid file %s: %s", - pid, filename, strerror(errno)); + ilog(LOG_TYPE_IRCD, "Error writing to pid file %s: %s", + filename, strerror(errno)); fclose(fb); }