Skip to content

Commit

Permalink
trap: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Sep 8, 2024
1 parent 7f91858 commit c71eb0e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bld/trap/par/c/parqnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@
#include <sys/osinfo.h>
#include "trperr.h"
#include "parlink.h"
#include "realmod.h"


#define INFO_SEG 0x40
#define PAR_BASE 0x08

#define PRIV_MASK 3
#define IOPL_SHIFT 12

Expand All @@ -60,7 +58,7 @@ int NumPrinters( void )
unsigned short __far *par;
int i;

par = _MK_FP( INFO_SEG, PAR_BASE );
par = _MK_FP( BDATA_SEG, BDATA_PRINTER_BASE );
for( i = 3; i > 0; --i ) {
if( par[i - 1] != 0 ) {
return( i );
Expand All @@ -74,7 +72,7 @@ unsigned PrnAddress( int printer )
{
unsigned short __far *par;

par = _MK_FP( INFO_SEG, PAR_BASE );
par = _MK_FP( BDATA_SEG, BDATA_PRINTER_BASE );
return( par[printer] );
}

Expand Down

0 comments on commit c71eb0e

Please sign in to comment.