summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/int2f.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
committertg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
commit47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae (patch)
treef69b902c12889e39d57e3d83d55293ee0abee74b /usr.bin/doscmd/int2f.c
parent97507091ff20d3dc72113dfbd0c9532423d3acb4 (diff)
downloadFreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.zip
FreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.tar.gz
Clean up the code a bit:
- add $FreeBSD$; - remove unused variables; - add missing headers and prototypes; - -Wshadow.
Diffstat (limited to 'usr.bin/doscmd/int2f.c')
-rw-r--r--usr.bin/doscmd/int2f.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/doscmd/int2f.c b/usr.bin/doscmd/int2f.c
index 8bfe3d8..e4ab619 100644
--- a/usr.bin/doscmd/int2f.c
+++ b/usr.bin/doscmd/int2f.c
@@ -34,6 +34,7 @@
#include "doscmd.h"
#include "dispatch.h"
+#include "tty.h"
/*
** Multiplex interrupt.
@@ -52,6 +53,7 @@ int2f_printer(regcontext_t *REGS)
{
debug (D_FILE_OPS, "Called printer function 0x%02x", R_AH);
R_AL = FUNC_NUM_IVALID;
+ return(0);
}
/*
@@ -155,13 +157,13 @@ static struct intfunc_table int2f_table[] = {
void
int2f(regcontext_t *REGS)
{
- int index;
+ int idx;
/* look up the handler for the current function */
- index = intfunc_search(int2f_table, R_AH, R_AL);
+ idx = intfunc_search(int2f_table, R_AH, R_AL);
- if (index >= 0) { /* respond on multiplex chain */
- int2f_table[index].handler(REGS);
+ if (idx >= 0) { /* respond on multiplex chain */
+ int2f_table[idx].handler(REGS);
} else {
unknown_int2(0x2f, R_AH, REGS);
}
OpenPOWER on IntegriCloud