Silence two further warnings

These two local variables seem unused, probably artifacts from some
older refactoring.
This commit is contained in:
Iustin Pop
2015-05-29 10:57:22 +02:00
parent af10994fc0
commit ffb34b5ca9
2 changed files with 1 additions and 5 deletions

3
mt.c
View File

@@ -284,7 +284,7 @@ static char *tape_name; /* The tape name for messages */
int
main(int argc, char **argv)
{
int mtfd, cmd_code, i, argn, oflags;
int mtfd, i, argn, oflags;
unsigned int len;
char *cmdstr;
cmdef_tr *comp, *comp2;
@@ -365,7 +365,6 @@ main(int argc, char **argv)
comp->cmd_name);
exit(1);
}
cmd_code = comp->cmd_code;
if (comp->cmd_fdtype != NO_FD) {
oflags = comp->cmd_fdtype == FD_RDONLY ? O_RDONLY : O_RDWR;

View File

@@ -451,9 +451,6 @@ find_pars(FILE *dbf, char *company, char *product, char *rev, devdef_tr *defs,
static int sg_io_errcheck(struct sg_io_hdr *hdp)
{
int status;
status = hdp->status & 0x7e;
if ((hdp->status & 0x7e) == 0 || hdp->host_status == 0 ||
hdp->driver_status == 0)
return 0;