From b5cc0592f7cb5a0575836aa8f5630ce0b7b4fbe2 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 3 Aug 2008 04:27:50 +0000 Subject: Add prototypes. --- cpukit/libnetworking/lib/tftpDriver.c | 2 +- cpukit/pppd/rtemsmain.c | 44 +++++++++++++++++------------------ cpukit/zlib/crc32.c | 20 ++++++++-------- 3 files changed, 33 insertions(+), 33 deletions(-) (limited to 'cpukit') diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c index 2561fc3e49..755f57f8ee 100644 --- a/cpukit/libnetworking/lib/tftpDriver.c +++ b/cpukit/libnetworking/lib/tftpDriver.c @@ -233,7 +233,7 @@ static int rtems_tftp_mount_me( * Initialize the TFTP driver */ -int rtems_bsdnet_initialize_tftp_filesystem () +int rtems_bsdnet_initialize_tftp_filesystem (void) { int status; rtems_filesystem_mount_table_entry_t *entry; diff --git a/cpukit/pppd/rtemsmain.c b/cpukit/pppd/rtemsmain.c index b301b6cac5..2f0fd6cd85 100644 --- a/cpukit/pppd/rtemsmain.c +++ b/cpukit/pppd/rtemsmain.c @@ -557,8 +557,8 @@ struct protocol_list { * protocol_name - find a name for a PPP protocol. */ const char * -protocol_name(proto) - int proto; +protocol_name( + int proto) { struct protocol_list *lp; @@ -657,8 +657,8 @@ get_input(void) * new_phase - signal the start of a new phase of pppd's operation. */ void -new_phase(p) - int p; +new_phase( + int p) { pppd_phase = p; if (new_phase_hook) @@ -669,8 +669,8 @@ new_phase(p) * die - clean up state and exit with the specified status. */ void -die(status) - int status; +die( + int status) { cleanup(); } @@ -680,7 +680,7 @@ die(status) */ /* ARGSUSED */ static void -cleanup() +cleanup(void) { sys_cleanup(); @@ -696,7 +696,7 @@ cleanup() * close_tty - restore the terminal device and close it. */ static void -close_tty() +close_tty(void) { /* drop dtr to hang up */ if (!default_device && modem) { @@ -718,8 +718,8 @@ close_tty() * update_link_stats - get stats at link termination. */ void -update_link_stats(u) - int u; +update_link_stats( + int u) { struct timeval now; char numbuf[32]; @@ -752,10 +752,10 @@ static struct timeval timenow; /* Current time */ * the kernel). */ void -ppptimeout(func, arg, time) - void (*func)(void *); - void *arg; - int time; +ppptimeout( + void (*func)(void *), + void *arg, + int time) { struct callout *newp, *p, **pp; @@ -789,9 +789,9 @@ ppptimeout(func, arg, time) * untimeout - Unschedule a timeout. */ void -pppuntimeout(func, arg) - void (*func)(void *); - void *arg; +pppuntimeout( + void (*func)(void *), + void *arg) { struct callout **copp, *freep; @@ -813,7 +813,7 @@ pppuntimeout(func, arg) * calltimeout - Call any timeout routines which are now due. */ static void -calltimeout() +calltimeout(void) { struct callout *p; @@ -839,8 +839,8 @@ calltimeout() * timeleft - return the length of time until the next timeout is due. */ static struct timeval * -timeleft(tvp) - struct timeval *tvp; +timeleft( + struct timeval *tvp) { if (callout == NULL) return NULL; @@ -889,8 +889,8 @@ static int device_script(int fd, int mode, char *program) * novm - log an error message saying we ran out of memory, and die. */ void -novm(msg) - char *msg; +novm( + char *msg) { fatal("Virtual memory exhausted allocating %s\n", msg); } diff --git a/cpukit/zlib/crc32.c b/cpukit/zlib/crc32.c index 51d5504035..cb5788f6a8 100644 --- a/cpukit/zlib/crc32.c +++ b/cpukit/zlib/crc32.c @@ -338,9 +338,9 @@ local unsigned long crc32_big(crc, buf, len) #define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ /* ========================================================================= */ -local unsigned long gf2_matrix_times(mat, vec) - unsigned long *mat; - unsigned long vec; +local unsigned long gf2_matrix_times( + unsigned long *mat, + unsigned long vec ) { unsigned long sum; @@ -355,9 +355,9 @@ local unsigned long gf2_matrix_times(mat, vec) } /* ========================================================================= */ -local void gf2_matrix_square(square, mat) - unsigned long *square; - unsigned long *mat; +local void gf2_matrix_square( + unsigned long *square, + unsigned long *mat) { int n; @@ -366,10 +366,10 @@ local void gf2_matrix_square(square, mat) } /* ========================================================================= */ -uLong ZEXPORT crc32_combine(crc1, crc2, len2) - uLong crc1; - uLong crc2; - z_off_t len2; +uLong ZEXPORT crc32_combine( + uLong crc1, + uLong crc2, + z_off_t len2) { int n; unsigned long row; -- cgit v1.2.3