- getexecname(3) returns const char *
- pid_t is long
check_splitmode_ev = rb_event_add("check_splitmode", check_splitmode, NULL, 5);
if(server_state_foreground)
- inotice("now running in foreground mode from %s as pid %d ...",
- ConfigFileEntry.dpath, getpid());
+ inotice("now running in foreground mode from %s as pid %ld ...",
+ ConfigFileEntry.dpath, (long)getpid());
rb_lib_loop(0);
{
static char path_buf[4096];
#if defined(HAVE_GETEXECNAME)
- char *s = getexecname();
+ const char *s = getexecname();
if (s == NULL)
return NULL;
realpath(s, path_buf);
struct Client *source_p = data;
sendto_one_numeric(source_p, RPL_STATSDEBUG,
- "S :%u %c %u :%s",
- pid,
+ "S :%ld %c %u :%s",
+ (long)pid,
status == SSLD_DEAD ? 'D' : (status == SSLD_SHUTDOWN ? 'S' : 'A'),
cli_count,
version);