unfortunately the unnecessary pointer comparison gives warning in lpt.c