Module Name: src
Committed By: joerg
Date: Mon Aug 29 14:46:54 UTC 2011
Modified Files:
src/bin/mv: mv.c
Log Message:
static + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/bin/mv/mv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/mv/mv.c
diff -u src/bin/mv/mv.c:1.42 src/bin/mv/mv.c:1.43
--- src/bin/mv/mv.c:1.42 Wed Aug 3 04:11:15 2011
+++ src/bin/mv/mv.c Mon Aug 29 14:46:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: mv.c,v 1.42 2011/08/03 04:11:15 manu Exp $ */
+/* $NetBSD: mv.c,v 1.43 2011/08/29 14:46:54 joerg Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: mv.c,v 1.42 2011/08/03 04:11:15 manu Exp $");
+__RCSID("$NetBSD: mv.c,v 1.43 2011/08/29 14:46:54 joerg Exp $");
#endif
#endif /* not lint */
@@ -65,14 +65,13 @@
#include "pathnames.h"
-int fflg, iflg, vflg;
-int stdin_ok;
+static int fflg, iflg, vflg;
+static int stdin_ok;
-int copy(char *, char *);
-int do_move(char *, char *);
-int fastcopy(char *, char *, struct stat *);
-void usage(void);
-int main(int, char *[]);
+static int copy(char *, char *);
+static int do_move(char *, char *);
+static int fastcopy(char *, char *, struct stat *);
+__dead static void usage(void);
int
main(int argc, char *argv[])
@@ -151,7 +150,7 @@
/* NOTREACHED */
}
-int
+static int
do_move(char *from, char *to)
{
struct stat sb;
@@ -253,7 +252,7 @@
fastcopy(from, to, &sb) : copy(from, to));
}
-int
+static int
fastcopy(char *from, char *to, struct stat *sbp)
{
struct timeval tval[2];
@@ -337,7 +336,7 @@
return (0);
}
-int
+static int
copy(char *from, char *to)
{
pid_t pid;
@@ -382,7 +381,7 @@
return (0);
}
-void
+static void
usage(void)
{
(void)fprintf(stderr, "usage: %s [-fiv] source target\n"