aboutsummaryrefslogtreecommitdiff
path: root/src/lpt.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
commit3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f (patch)
treeb06e3e2ef351dc668e723b32aede3e083c5a1c19 /src/lpt.c
parent9f880fa1eca65ed6b1e30624a97f543f2bcfb4a1 (diff)
use z_wrappers around sys_open/close()
svn path=/trunk/externals/zexy/; revision=17573
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