summaryrefslogtreecommitdiff
path: root/remote-stub.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
committerPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
commit6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch)
tree91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /remote-stub.c
parent8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff)
downloadgunmake-6374309c6d4d17ab1e4109133ab8aad55f77d51c.tar.gz
Convert the source code to use ANSI C style function definitions and
enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
Diffstat (limited to 'remote-stub.c')
-rw-r--r--remote-stub.c28
1 files changed, 10 insertions, 18 deletions
diff --git a/remote-stub.c b/remote-stub.c
index 69af397..73e6018 100644
--- a/remote-stub.c
+++ b/remote-stub.c
@@ -28,22 +28,21 @@ char *remote_description = 0;
/* Call once at startup even if no commands are run. */
void
-remote_setup ()
+remote_setup (void)
{
}
/* Called before exit. */
void
-remote_cleanup ()
+remote_cleanup (void)
{
}
/* Return nonzero if the next job should be done remotely. */
int
-start_remote_job_p (first_p)
- int first_p;
+start_remote_job_p (int first_p)
{
return 0;
}
@@ -56,12 +55,8 @@ start_remote_job_p (first_p)
nonzero if it is remote (meaning *ID_PTR is a process ID). */
int
-start_remote_job (argv, envp, stdin_fd, is_remote, id_ptr, used_stdin)
- char **argv, **envp;
- int stdin_fd;
- int *is_remote;
- int *id_ptr;
- int *used_stdin;
+start_remote_job (char **argv, char **envp, int stdin_fd,
+ int *is_remote, int *id_ptr, int *used_stdin)
{
return -1;
}
@@ -73,9 +68,8 @@ start_remote_job (argv, envp, stdin_fd, is_remote, id_ptr, used_stdin)
0 if we would have to block and !BLOCK, or < 0 if there were none. */
int
-remote_status (exit_code_ptr, signal_ptr, coredump_ptr, block)
- int *exit_code_ptr, *signal_ptr, *coredump_ptr;
- int block;
+remote_status (int *exit_code_ptr, int *signal_ptr, int *coredump_ptr,
+ int block)
{
errno = ECHILD;
return -1;
@@ -85,7 +79,7 @@ remote_status (exit_code_ptr, signal_ptr, coredump_ptr, block)
If this notification is done by raising the child termination
signal, do not block that signal. */
void
-block_remote_children ()
+block_remote_children (void)
{
return;
}
@@ -94,16 +88,14 @@ block_remote_children ()
If this is done by raising the child termination signal,
do not unblock that signal. */
void
-unblock_remote_children ()
+unblock_remote_children (void)
{
return;
}
/* Send signal SIG to child ID. Return 0 if successful, -1 if not. */
int
-remote_kill (id, sig)
- int id;
- int sig;
+remote_kill (int id, int sig)
{
return -1;
}