summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/intff.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
committermarkm <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
commit11e67a93424d6a1809a70fc2ef1afa71e49ea0cd (patch)
tree620c2f4d8cb09dac390014511238b22c1e62b4ac /usr.bin/doscmd/intff.c
parentaeb55e91a2e891a1c2315cee7210f70caa798355 (diff)
downloadFreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.zip
FreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.tar.gz
WARNS=2 fixup
Diffstat (limited to 'usr.bin/doscmd/intff.c')
-rw-r--r--usr.bin/doscmd/intff.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/doscmd/intff.c b/usr.bin/doscmd/intff.c
index 7e608cf..5586c4e 100644
--- a/usr.bin/doscmd/intff.c
+++ b/usr.bin/doscmd/intff.c
@@ -139,7 +139,7 @@ int2f11_dirfn(regcontext_t *REGS)
** Close
*/
static int
-int2f11_close(regcontext_t *REGS)
+int2f11_close(regcontext_t *REGS __unused)
{
int fd;
@@ -162,7 +162,7 @@ int2f11_close(regcontext_t *REGS)
** read/write
*/
static int
-int2f11_rdwr(regcontext_t *REGS)
+int2f11_rdwr(regcontext_t *REGS __unused)
{
int fd;
char *addr;
@@ -207,7 +207,7 @@ int2f11_rdwr(regcontext_t *REGS)
** Get free space (like 21:36)
*/
static int
-int2f11_free(regcontext_t *REGS)
+int2f11_free(regcontext_t *REGS __unused)
{
fsstat_t fs;
int error;
@@ -228,7 +228,7 @@ int2f11_free(regcontext_t *REGS)
** get size and mode
*/
static int
-int2f11_stat(regcontext_t *REGS)
+int2f11_stat(regcontext_t *REGS __unused)
{
char fname[PATH_MAX];
struct stat sb;
@@ -421,7 +421,7 @@ int2f11_open(regcontext_t *REGS)
** find first
*/
static int
-int2f11_findfirst(regcontext_t *REGS)
+int2f11_findfirst(regcontext_t *REGS __unused)
{
return(find_first(sda->filename1,sda->attrmask,
(dosdir_t *)sda->foundentry,
@@ -434,7 +434,7 @@ int2f11_findfirst(regcontext_t *REGS)
** find next
*/
static int
-int2f11_findnext(regcontext_t *REGS)
+int2f11_findnext(regcontext_t *REGS __unused)
{
return(find_next((dosdir_t *)sda->foundentry,
(find_block_t *)sda->findfirst));
@@ -477,7 +477,8 @@ static int
int2f11_fnqual(regcontext_t *REGS)
{
char *fname;
- const char *tname;
+ char *tname;
+ static char errmsg[] = "(failed)";
int savedrive;
int error;
@@ -490,7 +491,7 @@ int2f11_fnqual(regcontext_t *REGS)
error = dos_makepath(fname, tname);
if (error)
- tname = "(failed)";
+ tname = errmsg;
diskdrive = savedrive; /* restore correct drive */
@@ -504,7 +505,7 @@ int2f11_fnqual(regcontext_t *REGS)
** Null function - we know about it but do nothing
*/
static int
-int2f11_NULLFUNC(regcontext_t *REGS)
+int2f11_NULLFUNC(regcontext_t *REGS __unused)
{
return(0);
}
@@ -515,7 +516,7 @@ int2f11_NULLFUNC(regcontext_t *REGS)
** no function - not handled here (error)
*/
static int
-int2f11_NOFUNC(regcontext_t *REGS)
+int2f11_NOFUNC(regcontext_t *REGS __unused)
{
return(-1);
}
OpenPOWER on IntegriCloud