diff options
author | markm <markm@FreeBSD.org> | 2001-12-02 13:48:40 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-02 13:48:40 +0000 |
commit | 11e67a93424d6a1809a70fc2ef1afa71e49ea0cd (patch) | |
tree | 620c2f4d8cb09dac390014511238b22c1e62b4ac /usr.bin/doscmd/cwd.c | |
parent | aeb55e91a2e891a1c2315cee7210f70caa798355 (diff) | |
download | FreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.zip FreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.tar.gz |
WARNS=2 fixup
Diffstat (limited to 'usr.bin/doscmd/cwd.c')
-rw-r--r-- | usr.bin/doscmd/cwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doscmd/cwd.c b/usr.bin/doscmd/cwd.c index 85269b9..2e5415a 100644 --- a/usr.bin/doscmd/cwd.c +++ b/usr.bin/doscmd/cwd.c @@ -80,7 +80,7 @@ static Name_t *names; * Initialize the drive to be based at 'base' in the BSD filesystem */ void -init_path(int drive, u_char *base, u_char *dir) +init_path(int drive, const u_char *base, const u_char *dir) { Path_t *d; @@ -233,7 +233,7 @@ dos_makepath(u_char *where, u_char *newpath) if (*where != '\\' && *where != '/') { ustrncpy(tmppath, d->cwd, 1024); if (d->cwd[1]) - ustrncat(tmppath, (u_char *)"/", 1024 - ustrlen(tmppath)); + ustrncat(tmppath, "/", 1024 - ustrlen(tmppath)); ustrncat(tmppath, where, 1024 - ustrlen(tmppath)); } else { ustrncpy(tmppath, where, 1024 - ustrlen(tmppath)); |