From 6374309c6d4d17ab1e4109133ab8aad55f77d51c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 14 Oct 2002 21:54:04 +0000 Subject: 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. --- remote-stub.c | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'remote-stub.c') 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; } -- cgit v1.2.3