aboutsummaryrefslogtreecommitdiff
path: root/src/lpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpt.c')
-rw-r--r--src/lpt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpt.c b/src/lpt.c
index 26f4468..502ab6d 100644
--- a/src/lpt.c
+++ b/src/lpt.c
@@ -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