diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 04:54:15 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 04:54:15 +0000 |
commit | 97dbc8f347d76d9d4e710b2682994a7a3f68319c (patch) | |
tree | 14ffd689cafc7b6498a59c9683a3f6431afab530 /bin/ln | |
parent | 961a739a43875eccb9dc5da56e4a0642e923f02b (diff) | |
download | src-97dbc8f347d76d9d4e710b2682994a7a3f68319c.tar.gz src-97dbc8f347d76d9d4e710b2682994a7a3f68319c.zip |
Silence WARNS=2 and BDECFLAGS on i386 and alpha
MFC After: 1 week
Notes
Notes:
svn path=/head/; revision=76877
Diffstat (limited to 'bin/ln')
-rw-r--r-- | bin/ln/Makefile | 2 | ||||
-rw-r--r-- | bin/ln/ln.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/bin/ln/Makefile b/bin/ln/Makefile index b541f8bd3be0..1ccd02cdb4e2 100644 --- a/bin/ln/Makefile +++ b/bin/ln/Makefile @@ -7,4 +7,6 @@ MAN= ln.1 symlink.7 LINKS= ${BINDIR}/ln ${BINDIR}/link MLINKS= ln.1 link.1 +WARNS= 2 + .include <bsd.prog.mk> diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 83fe65179238..e2dfbc1d011c 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -64,7 +64,7 @@ int vflag; /* Verbose output. */ int (*linkf) __P((const char *, const char *)); char linkch; -int linkit __P((char *, char *, int)); +int linkit __P((const char *, const char *, int)); int main __P((int, char *[])); void usage __P((void)); @@ -74,8 +74,8 @@ main(argc, argv) char *argv[]; { struct stat sb; - int ch, exitval; char *p, *sourcedir; + int ch, exitval; /* * Test for the special case where the utility is called as @@ -155,12 +155,13 @@ main(argc, argv) int linkit(target, source, isdir) - char *target, *source; + const char *target, *source; int isdir; { struct stat sb; + const char *p; + char path[MAXPATHLEN]; int ch, exists, first; - char *p, path[MAXPATHLEN]; if (!sflag) { /* If target doesn't exist, quit now. */ |