summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2016-02-24 06:35:47 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-02-24 06:35:47 (GMT)
commit1f728fa1ea2ced70254debf3b6bf63b76ad90ee0 (patch) (side-by-side diff)
tree454c79db9ce2a80e652c49487ea9ed1beed86b0c /src
parentaf103177c3a442c86728ccfce2abd7795b6bdc21 (diff)
downloadpies-1f728fa1ea2ced70254debf3b6bf63b76ad90ee0.tar.gz
pies-1f728fa1ea2ced70254debf3b6bf63b76ad90ee0.tar.bz2
Minor stylistic change
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/pies.c16
-rw-r--r--src/piesctl.c2
-rw-r--r--src/progman.c10
-rw-r--r--src/socket.c4
-rw-r--r--src/sysvinit.c16
5 files changed, 24 insertions, 24 deletions
diff --git a/src/pies.c b/src/pies.c
index c5b3649..21d3421 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -170,7 +170,7 @@ config_file_list_serialize (struct json_value *ar)
/* Logging */
static int
-stderr_closed_p ()
+stderr_closed_p (void)
{
int fd = dup (0);
if (fd < 0)
@@ -1512,7 +1512,7 @@ struct grecs_keyword pies_keywords[] = {
};
void
-config_init ()
+config_init (void)
{
grecs_include_path_setup (DEFAULT_VERSION_INCLUDE_DIR,
DEFAULT_INCLUDE_DIR, NULL);
@@ -1552,7 +1552,7 @@ pies_config_parse (char const *name)
}
void
-config_help ()
+config_help (void)
{
static char docstring[] =
/* TRANSLATORS: do not translate words in quotes */
@@ -1807,7 +1807,7 @@ list_components (void)
int
-request_reload ()
+request_reload (void)
{
pid_t pid = pidfile_read (1);
@@ -1822,7 +1822,7 @@ request_reload ()
}
int
-request_status ()
+request_status (void)
{
pid_t pid;
@@ -1852,7 +1852,7 @@ request_status ()
}
int
-request_stop ()
+request_stop (void)
{
pid_t pid = pidfile_read (1);
@@ -1929,7 +1929,7 @@ remove_pidfile (char *name)
static void
-set_mailer_argcv ()
+set_mailer_argcv (void)
{
int i;
struct wordsplit ws;
@@ -2320,7 +2320,7 @@ main (int argc, char **argv)
}
void
-xalloc_die ()
+xalloc_die (void)
{
logmsg (LOG_CRIT, _("not enough memory"));
abort ();
diff --git a/src/piesctl.c b/src/piesctl.c
index f4ea514..22a4e27 100644
--- a/src/piesctl.c
+++ b/src/piesctl.c
@@ -129,7 +129,7 @@ struct grecs_keyword piesctl_keywords[] = {
};
static void
-parse_config ()
+parse_config (void)
{
char *file_name;
struct grecs_node *tree;
diff --git a/src/progman.c b/src/progman.c
index 2d3a14c..852a71c 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -319,7 +319,7 @@ register_command (char *tag, char *command, pid_t pid)
}
int
-progman_waiting_p ()
+progman_waiting_p (void)
{
struct prog *prog;
@@ -1458,13 +1458,13 @@ prog_create_socket (struct prog *prog, void *data)
}
void
-progman_create_sockets ()
+progman_create_sockets (void)
{
progman_foreach (prog_create_socket, NULL);
}
void
-progman_recompute_alarm ()
+progman_recompute_alarm (void)
{
struct prog *prog;
time_t now = time (NULL);
@@ -1498,7 +1498,7 @@ progman_recompute_alarm ()
}
void
-progman_start ()
+progman_start (void)
{
struct prog *prog;
@@ -2450,7 +2450,7 @@ prog_to_stop (struct prog *prog)
/* Stop all program components marked for termination. Wait at most
2*shutdown_timeout seconds. */
void
-progman_gc ()
+progman_gc (void)
{
time_t start;
struct prog *prog, *next;
diff --git a/src/socket.c b/src/socket.c
index 90833e5..2b2bc52 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -419,7 +419,7 @@ find_socket (int fd)
}
static void
-calc_fd_max ()
+calc_fd_max (void)
{
struct sockinst *sp;
@@ -560,7 +560,7 @@ enable_socket (int fd)
}
void
-pies_pause ()
+pies_pause (void)
{
if (fd_max == -1)
calc_fd_max ();
diff --git a/src/sysvinit.c b/src/sysvinit.c
index 6bc918c..bbd97f3 100644
--- a/src/sysvinit.c
+++ b/src/sysvinit.c
@@ -82,7 +82,7 @@ console_open (int mode)
}
void
-console_stty ()
+console_stty (void)
{
struct termios tty;
int fd;
@@ -127,7 +127,7 @@ console_stty ()
}
int
-askrunlevel ()
+askrunlevel (void)
{
int fd;
char c, lvl = -1;
@@ -194,7 +194,7 @@ askrunlevel ()
}
static int
-getinitdefault ()
+getinitdefault (void)
{
return initdefault ? initdefault : askrunlevel ();
}
@@ -362,7 +362,7 @@ char *sysvinit_environ_hint[NR_ENVHINT] = {
#define ENVI_AVAIL 5
static void
-envsetup ()
+envsetup (void)
{
int i;
@@ -540,7 +540,7 @@ sysvinit_fifo_handler (int fd, void *data)
}
static void
-create_fifo ()
+create_fifo (void)
{
static int fd = -1;
struct stat st, fst;
@@ -597,7 +597,7 @@ static char *try_console[] = { NULL, "/dev/console", "/dev/tty0" };
char *console_device;
static void
-set_console_dev ()
+set_console_dev (void)
{
int i;
for (i = 0; i < ARRAY_SIZE (try_console); i++)
@@ -736,7 +736,7 @@ sysvinit_realloc (void *ptr, size_t size)
}
void
-sysvinit_begin ()
+sysvinit_begin (void)
{
int sigv[] = {
SIGINT,
@@ -767,7 +767,7 @@ sysvinit_begin ()
&& !prog->v.p.active)
int
-inittrans ()
+inittrans (void)
{
int n;
int newlevel = 0;

Return to:

Send suggestions and report system problems to the System administrator.