summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 08:47:51 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 08:47:51 +0000
commit11975abb2c891e563dbed51a52c050ea0b05b8a4 (patch)
treed99ca21591a2528ac4546b64c8f703b0fc6dac34 /libc/misc
parent6a9087f96b69f1b8cea5cee76a27784d2b131cd2 (diff)
- remove old-style definitions. No object-code changes.
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/fnmatch/fnmatch_loop.c8
-rw-r--r--libc/misc/ftw/ftw.c23
-rw-r--r--libc/misc/time/ftime.c3
3 files changed, 7 insertions, 27 deletions
diff --git a/libc/misc/fnmatch/fnmatch_loop.c b/libc/misc/fnmatch/fnmatch_loop.c
index 191cef50c..af41727c0 100644
--- a/libc/misc/fnmatch/fnmatch_loop.c
+++ b/libc/misc/fnmatch/fnmatch_loop.c
@@ -29,12 +29,8 @@ static const CHAR *END (const CHAR *patternp) internal_function;
static int
internal_function
-FCT (pattern, string, string_end, no_leading_period, flags)
- const CHAR *pattern;
- const CHAR *string;
- const CHAR *string_end;
- int no_leading_period;
- int flags;
+FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end,
+ int no_leading_period, int flags)
{
register const CHAR *p = pattern, *n = string;
register UCHAR c;
diff --git a/libc/misc/ftw/ftw.c b/libc/misc/ftw/ftw.c
index 33d1a651d..81944ce98 100644
--- a/libc/misc/ftw/ftw.c
+++ b/libc/misc/ftw/ftw.c
@@ -776,21 +776,14 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors,
/* Entry points. */
int
-FTW_NAME (path, func, descriptors)
- const char *path;
- FTW_FUNC_T func;
- int descriptors;
+FTW_NAME (const char *path, FTW_FUNC_T func, int descriptors)
{
return ftw_startup (path, 0, func, descriptors, 0);
}
#ifndef _LIBC
int
-NFTW_NAME (path, func, descriptors, flags)
- const char *path;
- NFTW_FUNC_T func;
- int descriptors;
- int flags;
+NFTW_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
{
return ftw_startup (path, 1, func, descriptors, flags);
}
@@ -801,11 +794,7 @@ NFTW_NAME (path, func, descriptors, flags)
int NFTW_NEW_NAME (const char *, NFTW_FUNC_T, int, int);
int
-NFTW_NEW_NAME (path, func, descriptors, flags)
- const char *path;
- NFTW_FUNC_T func;
- int descriptors;
- int flags;
+NFTW_NEW_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
{
if (flags
& ~(FTW_PHYS | FTW_MOUNT | FTW_CHDIR | FTW_DEPTH | FTW_ACTIONRETVAL))
@@ -826,11 +815,7 @@ int NFTW_OLD_NAME (const char *, NFTW_FUNC_T, int, int);
int
attribute_compat_text_section
-NFTW_OLD_NAME (path, func, descriptors, flags)
- const char *path;
- NFTW_FUNC_T func;
- int descriptors;
- int flags;
+NFTW_OLD_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
{
flags &= (FTW_PHYS | FTW_MOUNT | FTW_CHDIR | FTW_DEPTH);
return ftw_startup (path, 1, func, descriptors, flags);
diff --git a/libc/misc/time/ftime.c b/libc/misc/time/ftime.c
index 233d6f70d..49c137ce5 100644
--- a/libc/misc/time/ftime.c
+++ b/libc/misc/time/ftime.c
@@ -21,8 +21,7 @@
libc_hidden_proto(gettimeofday)
-int ftime(timebuf)
-struct timeb *timebuf;
+int ftime(struct timeb *timebuf)
{
struct timeval tv;
struct timezone tz;