summaryrefslogtreecommitdiffstats
path: root/bin/mv/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mv/mv.c')
-rw-r--r--bin/mv/mv.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 3c4695e..8b2ef92 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -68,16 +68,13 @@ static const char rcsid[] =
int fflg, iflg, vflg;
-int copy __P((char *, char *));
-int do_move __P((char *, char *));
-int fastcopy __P((char *, char *, struct stat *));
-int main __P((int, char *[]));
-void usage __P((void));
+int copy(char *, char *);
+int do_move(char *, char *);
+int fastcopy(char *, char *, struct stat *);
+void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
register int baselen, len, rval;
register char *p, *endp;
@@ -151,8 +148,7 @@ main(argc, argv)
}
int
-do_move(from, to)
- char *from, *to;
+do_move(char *from, char *to)
{
struct stat sb;
int ask, ch, first;
@@ -232,9 +228,7 @@ do_move(from, to)
}
int
-fastcopy(from, to, sbp)
- char *from, *to;
- struct stat *sbp;
+fastcopy(char *from, char *to, struct stat *sbp)
{
struct timeval tval[2];
static u_int blen;
@@ -325,8 +319,7 @@ err: if (unlink(to))
}
int
-copy(from, to)
- char *from, *to;
+copy(char *from, char *to)
{
int pid, status;
@@ -371,7 +364,7 @@ copy(from, to)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "%s\n%s\n",
OpenPOWER on IntegriCloud