summaryrefslogtreecommitdiff
path: root/gpib.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:54:22 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:54:22 -0500
commitc5f2953fd9be7e3e15e898b1c2066c0c76b80027 (patch)
tree08d1b782d0d99803f7f1122617189ca0364903f7 /gpib.c
parent6f54d6f2efeb88630e69cd673f5be55e16735f22 (diff)
fixed some gpib warnings
Diffstat (limited to 'gpib.c')
-rw-r--r--gpib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpib.c b/gpib.c
index d28e7ca..091aef6 100644
--- a/gpib.c
+++ b/gpib.c
@@ -416,8 +416,6 @@ static void TNT_Gen_Error(int code)
/*----------------------------------------------------------------------------------------------------------*/
void GPIB_initialize(void)
{
- int i;
-
INTERFACE_STATUS=0; /* Initialize Globals to zero */
INTERFACE_ERROR=0;
DATA_COUNT=0;
@@ -972,7 +970,7 @@ unsigned int GPIB_get_ESE ()
unsigned int GPIB_get_STB ()
{
if (!is_gpib) {
- return;
+ return 0;
}
return (TNT_In(R_spsr)&0xbf) | (((TNT_In(R_spsr)&0xbf) & MR_4882_status[SRE])?0x40:0);