diff options
Diffstat (limited to 'src/lpt.c')
-rw-r--r-- | src/lpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -204,14 +204,14 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->port=strtol(devname, 0, 16); if(0==x->port) { #ifdef HAVE_LINUX_PPDEV_H - x->device = open(devname, O_RDWR); + x->device = z_open(devname, O_RDWR); if(x->device<=0) { error("lpt: bad device %s", devname); return(x); } else { if (ioctl (x->device, PPCLAIM)) { perror ("PPCLAIM"); - close (x->device); + z_close (x->device); x->device=-1; } } @@ -280,7 +280,7 @@ static void lpt_free(t_lpt *x) # ifdef HAVE_LINUX_PPDEV_H if (x->device>0) { ioctl (x->device, PPRELEASE); - close(x->device); + z_close(x->device); x->device=0; } else # endif |