summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);