diff options
-rw-r--r-- | cpukit/libi2c/libi2c.c | 2 | ||||
-rw-r--r-- | cpukit/libi2c/libi2c.h | 2 | ||||
-rw-r--r-- | cpukit/libmd/md4.c | 20 | ||||
-rw-r--r-- | cpukit/libmd/md5.c | 8 | ||||
-rw-r--r-- | cpukit/libmisc/monitor/mon-command.c | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/filemode.c | 6 | ||||
-rw-r--r-- | cpukit/libmisc/shell/shell_script.c | 2 |
7 files changed, 22 insertions, 23 deletions
diff --git a/cpukit/libi2c/libi2c.c b/cpukit/libi2c/libi2c.c index bcfb6d4817..096f8cc1c5 100644 --- a/cpukit/libi2c/libi2c.c +++ b/cpukit/libi2c/libi2c.c @@ -348,7 +348,7 @@ const rtems_driver_address_table rtems_libi2c_io_ops = { }; int -rtems_libi2c_initialize () +rtems_libi2c_initialize (void) { rtems_status_code sc; diff --git a/cpukit/libi2c/libi2c.h b/cpukit/libi2c/libi2c.h index d03d02fe10..fc1c57e423 100644 --- a/cpukit/libi2c/libi2c.h +++ b/cpukit/libi2c/libi2c.h @@ -58,7 +58,7 @@ extern "C" { /* Simple I2C driver API */ /* Initialize the libary - may fail if no semaphore or no driver slot is available */ -int rtems_libi2c_initialize (); +int rtems_libi2c_initialize (void); /* Alternatively to rtems_libi2c_initialize() the library can also be * initialized by means of a traditional driver table entry containing diff --git a/cpukit/libmd/md4.c b/cpukit/libmd/md4.c index 9d3b9d0a80..4060cce4f7 100644 --- a/cpukit/libmd/md4.c +++ b/cpukit/libmd/md4.c @@ -121,9 +121,9 @@ MD4_CTX *MDp; ** This routine is not user-callable. */ static void -MDblock(MDp,Xb) -MD4_CTX *MDp; -unsigned char *Xb; +MDblock( + MD4_CTX *MDp, + unsigned char *Xb) { register uint32_t tmp, A, B, C, D; uint32_t X[16]; @@ -208,10 +208,10 @@ unsigned char *Xb; ** if desired. */ void -MD4Update(MDp,X,count) -MD4_CTX *MDp; -unsigned char *X; -unsigned int count; +MD4Update( + MD4_CTX *MDp, + unsigned char *X, + unsigned int count ) { unsigned int i, tmp, bit, byte, mask; unsigned char XX[64]; @@ -278,9 +278,9 @@ unsigned int count; ** Finish up MD4 computation and return message digest. */ void -MD4Final(buf, MD) -unsigned char *buf; -MD4_CTX *MD; +MD4Final( + unsigned char *buf, + MD4_CTX *MD) { int i, j; unsigned int w; diff --git a/cpukit/libmd/md5.c b/cpukit/libmd/md5.c index afabb6028e..cf7ee12132 100644 --- a/cpukit/libmd/md5.c +++ b/cpukit/libmd/md5.c @@ -49,7 +49,7 @@ */ /* forward declaration */ -static void Transform (); +static void Transform (UINT4 *buf, UINT4 *in); static unsigned char PADDING[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -201,9 +201,9 @@ MD5_CTX *mdContext; /* Basic MD5 step. Transforms buf based on in. */ -static void Transform (buf, in) -UINT4 *buf; -UINT4 *in; +static void Transform ( + UINT4 *buf, + UINT4 *in ) { UINT4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; diff --git a/cpukit/libmisc/monitor/mon-command.c b/cpukit/libmisc/monitor/mon-command.c index d007871089..82e0c21158 100644 --- a/cpukit/libmisc/monitor/mon-command.c +++ b/cpukit/libmisc/monitor/mon-command.c @@ -155,7 +155,7 @@ static struct translation_table trans_tab[] = #endif /* - * Perform a basic tranlation for some ANSI/VT100 key codes. + * Perform a basic translation for some ANSI/VT100 key codes. * This code could do with a timeout on the ESC as it is * now lost from the input stream. It is not* used by the * line editor below so considiered not worth the effort. @@ -163,8 +163,7 @@ static struct translation_table trans_tab[] = #ifndef RTEMS_UNIX static unsigned int -rtems_monitor_getchar ( -) +rtems_monitor_getchar (void) { struct translation_table *translation = 0; for (;;) diff --git a/cpukit/libmisc/shell/filemode.c b/cpukit/libmisc/shell/filemode.c index 6d77a1be95..7142b3583e 100644 --- a/cpukit/libmisc/shell/filemode.c +++ b/cpukit/libmisc/shell/filemode.c @@ -38,9 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libc/string/strmode.c,v 1.5 2007/01/09 00:28:12 imp #include <string.h> void -strmode(mode, p) - mode_t mode; - char *p; +strmode( + mode_t mode, + char *p) { /* print type */ switch (mode & S_IFMT) { diff --git a/cpukit/libmisc/shell/shell_script.c b/cpukit/libmisc/shell/shell_script.c index 0940a75046..c71a07815e 100644 --- a/cpukit/libmisc/shell/shell_script.c +++ b/cpukit/libmisc/shell/shell_script.c @@ -31,7 +31,7 @@ #include <rtems/shell.h> #include "internal.h" -static void rtems_shell_joel_usage() +static void rtems_shell_joel_usage(void) { printf( "joel [args] where args may be:\n" |