Commit 543ecd77 authored by Per Cederqvist's avatar Per Cederqvist

(rcsid): Added a missing const.

(init_data_base): Removed unused argument dir_base.  All callers updated.
(sighandler_hup): Flag unused argument.
(sighandler_quit): Likewise.
(sighandler_usr1): Likewise.
(sighandler_usr2): Likewise.
(go_daemon): Make it a function prototype.
(initialize): New static.
parent aa3c79db
/*
* $Id: ramkomd.c,v 0.64 1997/09/13 15:32:32 byers Exp $
* $Id: ramkomd.c,v 0.65 1998/07/08 17:00:34 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -38,7 +38,8 @@
* It has grown! /ceder
*/
static char *rcsid = "$Id: ramkomd.c,v 0.64 1997/09/13 15:32:32 byers Exp $";
static const char *
rcsid = "$Id: ramkomd.c,v 0.65 1998/07/08 17:00:34 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -97,6 +98,7 @@ USE(rcsid);
#include "manipulate.h"
#include "version-info.h"
#include "aux-items.h"
#include "unused.h"
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_OFILE) && !defined(RLIMIT_NOFILE)
# define RLIMIT_NOFILE RLIMIT_OFILE
......@@ -187,7 +189,7 @@ server_init (char * client_port, char * mux_port)
}
static void
init_data_base(const char *dir_base)
init_data_base(void)
{
log("Database = %s\n", param.datafile_name);
log("Backup = %s\n", param.backupfile_name);
......@@ -197,7 +199,7 @@ init_data_base(const char *dir_base)
}
static void
sighandler_hup (int sig)
sighandler_hup (int UNUSED(sig))
{
#ifndef HAVE_STRUCT_SIGACTION
signal(SIGHUP, sighandler_hup);
......@@ -207,7 +209,7 @@ sighandler_hup (int sig)
}
static void
sighandler_quit (int sig)
sighandler_quit (int UNUSED(sig))
{
log ("Signal QUIT received - syncing...\n");
cache_sync_all();
......@@ -216,7 +218,7 @@ sighandler_quit (int sig)
}
static void
sighandler_usr1 (int sig)
sighandler_usr1 (int UNUSED(sig))
{
#ifndef HAVE_STRUCT_SIGACTION
signal(SIGUSR1, sighandler_usr1);
......@@ -225,7 +227,7 @@ sighandler_usr1 (int sig)
}
static void
sighandler_usr2 (int sig)
sighandler_usr2 (int UNUSED(sig))
{
int child;
......@@ -263,7 +265,7 @@ save_pid(void)
}
static void
go_daemon()
go_daemon(void)
{
pid_t child;
int fd;
......@@ -334,7 +336,7 @@ go_daemon()
kom_version_info.server_version, (unsigned long)getpid());
}
void
static void
initialize(const char *config_file, char *aux_def_file)
{
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
......@@ -408,7 +410,7 @@ initialize(const char *config_file, char *aux_def_file)
go_daemon();
server_init(param.ip_client_port, param.ip_mux_port);
init_data_base(param.dbase_dir);
init_data_base();
}
/* Stop complaint from gcc 2.0 about "no previous prototype for `main'". */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment