diff options
Diffstat (limited to 'bin/ln/ln.c')
-rw-r--r-- | bin/ln/ln.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 83fe651..e2dfbc1 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. */ |