--- np2/io/np2sysp.c 2004/01/23 08:44:30 1.14 +++ np2/io/np2sysp.c 2005/02/07 14:46:11 1.16 @@ -149,7 +149,7 @@ static const SYSPCMD np2spcmd[] = { {str_hwreset, np2sysp_hwreset, NULL, 0}, // extension -#if defined(SUPPORT_SASI) +#if defined(SUPPORT_IDEIO) || defined(SUPPORT_SASI) {str_sasibios, np2sysp_sasi, NULL, 0}, #endif #if defined(SUPPORT_SCSI) @@ -199,7 +199,7 @@ const SYSPCMD *cmdterm; np2sysp.substr[np2sysp.strpos] = (char)dat; cmd = np2spcmd; - cmdterm = cmd + (sizeof(np2spcmd) / sizeof(SYSPCMD)); + cmdterm = cmd + NELEMENTS(np2spcmd); while(cmd < cmdterm) { if (!np2syspcmp(cmd->key)) { cmd->func(cmd->arg1, cmd->arg2);