diff --git a/prnt/hpps/hppsfilter.c b/prnt/hpps/hppsfilter.c index dbf6449..9029c66 100644 --- a/prnt/hpps/hppsfilter.c +++ b/prnt/hpps/hppsfilter.c @@ -104,7 +104,7 @@ static void open_tempbookletfile(char *mode) if(ptempbooklet_file == NULL) { fprintf(stderr, "ERROR: Unable to open temp file %s\n", temp_filename); - return 1; + return; } chmod(temp_filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); diff --git a/scan/sane/hpaio.c b/scan/sane/hpaio.c index f114105..a88c822 100644 --- a/scan/sane/hpaio.c +++ b/scan/sane/hpaio.c @@ -407,19 +407,19 @@ extern SANE_Status sane_hpaio_open(SANE_String_Const devicename, SANE_Handle * p extern void sane_hpaio_close(SANE_Handle handle) { if (strcmp(*((char **)handle), "MARVELL") == 0) - return marvell_close(handle); + marvell_close(handle); if (strcmp(*((char **)handle), "SOAP") == 0) - return soap_close(handle); + soap_close(handle); if (strcmp(*((char **)handle), "SOAPHT") == 0) - return soapht_close(handle); + soapht_close(handle); if (strcmp(*((char **)handle), "LEDM") == 0) - return ledm_close(handle); + ledm_close(handle); if (strcmp(*((char **)handle), "SCL-PML") == 0) - return sclpml_close(handle); + sclpml_close(handle); if (strcmp(*((char **)handle), "ESCL") == 0) - return escl_close(handle); + escl_close(handle); if (strcmp(*((char **)handle), "ORBLITE") == 0) - return orblite_close(handle); + orblite_close(handle); } /* sane_hpaio_close() */ extern const SANE_Option_Descriptor * sane_hpaio_get_option_descriptor(SANE_Handle handle, SANE_Int option) @@ -540,19 +540,19 @@ extern SANE_Status sane_hpaio_read(SANE_Handle handle, SANE_Byte *data, SANE_Int extern void sane_hpaio_cancel( SANE_Handle handle ) { if (strcmp(*((char **)handle), "MARVELL") == 0) - return marvell_cancel(handle); + marvell_cancel(handle); if (strcmp(*((char **)handle), "SOAP") == 0) - return soap_cancel(handle); + soap_cancel(handle); if (strcmp(*((char **)handle), "SOAPHT") == 0) - return soapht_cancel(handle); + soapht_cancel(handle); if (strcmp(*((char **)handle), "LEDM") == 0) - return ledm_cancel(handle); + ledm_cancel(handle); if (strcmp(*((char **)handle), "SCL-PML") == 0) - return sclpml_cancel(handle); + sclpml_cancel(handle); if (strcmp(*((char **)handle), "ESCL") == 0) - return escl_cancel(handle); + escl_cancel(handle); if (strcmp(*((char **)handle), "ORBLITE") == 0) - return orblite_cancel(handle); + orblite_cancel(handle); } /* sane_hpaio_cancel() */ extern SANE_Status sane_hpaio_set_io_mode(SANE_Handle handle, SANE_Bool nonBlocking)