summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-11-09 17:02:23 +0000
committerJim Meyering <jim@meyering.net>1995-11-09 17:02:23 +0000
commitc0d94c89eca0f838ee5683726780110c2abcc14e (patch)
tree2c8dd672bd25296ff294a3d46fc91227d026c9cc /src/touch.c
parentdd3a08897371348fbcac1a951250273e28c4e26c (diff)
downloadcoreutils-c0d94c89eca0f838ee5683726780110c2abcc14e.tar.xz
Protoize.
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/touch.c b/src/touch.c
index 2e8b6c051..3aee37538 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -53,8 +53,8 @@ int safe_read ();
int full_write ();
void invalid_arg ();
-static int touch ();
-static void usage ();
+static int touch (char *file);
+static void usage (int status);
#ifndef HAVE_UTIME_NULL
static int utime_now ();
#endif
@@ -126,9 +126,7 @@ static int const time_masks[] =
};
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int c, i;
int date_set = 0;
@@ -256,8 +254,7 @@ main (argc, argv)
Return 0 if successful, 1 if an error occurs. */
static int
-touch (file)
- char *file;
+touch (char *file)
{
int status;
struct stat sbuf;
@@ -369,8 +366,7 @@ utime_now (file, filesize)
#endif
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, "Try `%s --help' for more information.\n",