aboutsummaryrefslogtreecommitdiff
path: root/src/lpt.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-23 17:56:42 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-23 17:56:42 +0000
commitb614183d637d97b51c82f700039152a1166c6077 (patch)
tree3122e21bd818219c2613654d5c37849cef21cfdd /src/lpt.c
parentc9e58457bb14a6441ed887e0604040994100408d (diff)
cleaned up code so we get hardly any warnings when compiling with "-Wall"
svn path=/trunk/externals/zexy/; revision=4473
Diffstat (limited to 'src/lpt.c')
-rw-r--r--src/lpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lpt.c b/src/lpt.c
index d0d5b1b..9539efd 100644
--- a/src/lpt.c
+++ b/src/lpt.c
@@ -47,10 +47,12 @@
# include <errno.h>
# ifdef HAVE_LINUX_PPDEV_H
+# include <unistd.h>
# include <sys/ioctl.h>
# include <linux/ppdev.h>
# include <linux/parport.h>
# include <fcntl.h>
+# include <stdio.h>
# endif /* HAVE_LINUX_PPDEV_H */
@@ -192,7 +194,6 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv)
we ignore the file (device) case by now;
LATER think about this
*/
- int bla;
x->device=-1;
x->port=strtol(devname, 0, 16);
if(0==x->port){