mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-07 12:35:19 +00:00
Silence two further warnings
These two local variables seem unused, probably artifacts from some older refactoring.
This commit is contained in:
3
mt.c
3
mt.c
@@ -284,7 +284,7 @@ static char *tape_name; /* The tape name for messages */
|
|||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int mtfd, cmd_code, i, argn, oflags;
|
int mtfd, i, argn, oflags;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
char *cmdstr;
|
char *cmdstr;
|
||||||
cmdef_tr *comp, *comp2;
|
cmdef_tr *comp, *comp2;
|
||||||
@@ -365,7 +365,6 @@ main(int argc, char **argv)
|
|||||||
comp->cmd_name);
|
comp->cmd_name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
cmd_code = comp->cmd_code;
|
|
||||||
|
|
||||||
if (comp->cmd_fdtype != NO_FD) {
|
if (comp->cmd_fdtype != NO_FD) {
|
||||||
oflags = comp->cmd_fdtype == FD_RDONLY ? O_RDONLY : O_RDWR;
|
oflags = comp->cmd_fdtype == FD_RDONLY ? O_RDONLY : O_RDWR;
|
||||||
|
|||||||
3
stinit.c
3
stinit.c
@@ -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)
|
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 ||
|
if ((hdp->status & 0x7e) == 0 || hdp->host_status == 0 ||
|
||||||
hdp->driver_status == 0)
|
hdp->driver_status == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user