Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37409146
en ru br
Репозитории ALT
S:3.23.8-alt1
5.1: 3.11.5-alt0.M51.1
4.1: 2.8.10-alt2.M41.1
4.0: 2.7.12-alt2.M40.1
+backports:2.8.10-alt2.M40.1
3.0:
+backports:1.6.6a-alt0.M30.4.1
www.altlinux.org/Changes

Группа :: Издательство
Пакет: hplip

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: hplip-fix-Wreturn-type-warning.patch
Скачать


--- hplip-3.20.3/prnt/hpps/hppsfilter.c.orig	2020-03-25 01:09:51.585129957 +0000
+++ hplip-3.20.3/prnt/hpps/hppsfilter.c	2020-03-25 01:10:15.610058293 +0000
@@ -104,7 +104,7 @@ static void open_tempbookletfile(char *m
     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);
 
--- hplip-3.20.3/scan/sane/hpaio.c.orig	2020-03-25 01:24:15.558732638 +0000
+++ hplip-3.20.3/scan/sane/hpaio.c	2020-03-25 02:48:36.097054366 +0000
@@ -406,20 +406,34 @@ extern SANE_Status sane_hpaio_open(SANE_
 
 extern void sane_hpaio_close(SANE_Handle handle)
 {
-    if (strcmp(*((char **)handle), "MARVELL") == 0)
-       return marvell_close(handle);
-    if (strcmp(*((char **)handle), "SOAP") == 0)
-       return soap_close(handle);
-    if (strcmp(*((char **)handle), "SOAPHT") == 0)
-       return soapht_close(handle);
-    if (strcmp(*((char **)handle), "LEDM") == 0)
-       return ledm_close(handle);
-    if (strcmp(*((char **)handle), "SCL-PML") == 0)
-       return sclpml_close(handle);
-    if (strcmp(*((char **)handle), "ESCL") == 0)
-       return escl_close(handle);
-    if (strcmp(*((char **)handle), "ORBLITE") == 0)
-       return orblite_close(handle);
+    if (strcmp(*((char **)handle), "MARVELL") == 0) {
+       marvell_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SOAP") == 0) {
+       soap_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SOAPHT") == 0) {
+       soapht_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "LEDM") == 0) {
+       ledm_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SCL-PML") == 0) {
+       sclpml_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "ESCL") == 0) {
+       escl_close(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "ORBLITE") == 0) {
+       orblite_close(handle);
+       return;
+    }
 }  /* sane_hpaio_close() */
 
 extern const SANE_Option_Descriptor * sane_hpaio_get_option_descriptor(SANE_Handle handle, SANE_Int option)
@@ -539,20 +553,34 @@ extern SANE_Status sane_hpaio_read(SANE_
 /* Note, sane_cancel is called normally not just during IO abort situations. */
 extern void sane_hpaio_cancel( SANE_Handle handle )
 {
-    if (strcmp(*((char **)handle), "MARVELL") == 0)
-       return marvell_cancel(handle);
-    if (strcmp(*((char **)handle), "SOAP") == 0)
-       return soap_cancel(handle);
-    if (strcmp(*((char **)handle), "SOAPHT") == 0)
-       return soapht_cancel(handle);
-    if (strcmp(*((char **)handle), "LEDM") == 0)
-       return ledm_cancel(handle);
-    if (strcmp(*((char **)handle), "SCL-PML") == 0)
-       return sclpml_cancel(handle);
-    if (strcmp(*((char **)handle), "ESCL") == 0)
-       return escl_cancel(handle);
-    if (strcmp(*((char **)handle), "ORBLITE") == 0)
-       return orblite_cancel(handle);
+    if (strcmp(*((char **)handle), "MARVELL") == 0) {
+       marvell_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SOAP") == 0) {
+       soap_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SOAPHT") == 0) {
+       soapht_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "LEDM") == 0) {
+       ledm_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "SCL-PML") == 0) {
+       sclpml_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "ESCL") == 0) {
+       escl_cancel(handle);
+       return;
+    }
+    if (strcmp(*((char **)handle), "ORBLITE") == 0) {
+       orblite_cancel(handle);
+       return;
+    }
 }  /* sane_hpaio_cancel() */
 
 extern SANE_Status sane_hpaio_set_io_mode(SANE_Handle handle, SANE_Bool nonBlocking)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin