summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-10 18:29:10 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-03 22:35:48 +0100
commita9e9cfcd54baa5bdd71a187c41542888a091f220 (patch)
treedc39cef86b9d109f8d6bb5cfca69733f35adc076
parentc2b391d828f6a42d4f7f3247b90a7e27c090c332 (diff)
downloadtdelibs-a9e9cfcd54baa5bdd71a187c41542888a091f220.tar.gz
tdelibs-a9e9cfcd54baa5bdd71a187c41542888a091f220.zip
Fix missing argments for drive parse filter on lpr
It was extended for compressed PPD support, but not refrected to lpr parts. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 15116d8f64b35a695bcabc92239667c8684dc545)
-rw-r--r--kdeprint/cups/make_driver_db_cups.cpp2
-rw-r--r--kdeprint/driverparse.c2
-rw-r--r--kdeprint/lpr/make_driver_db_lpr.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/kdeprint/cups/make_driver_db_cups.cpp b/kdeprint/cups/make_driver_db_cups.cpp
index bc6e4383b..0cd73ba9e 100644
--- a/kdeprint/cups/make_driver_db_cups.cpp
+++ b/kdeprint/cups/make_driver_db_cups.cpp
@@ -213,7 +213,7 @@ void initCompressedPpd(const char *dirname)
// If we were to rerun initPpd here then all drivers would be duplicated!
}
-int parsePpdFile(const char *filename, const char *origin, const char *metadata, FILE *output_file)
+int parsePpdFile(const char *filename, const char * /*origin*/, const char * /*metadata*/, FILE *output_file)
{
gzFile ppd_file;
char line[4096], value[256], langver[64] = {0}, desc[256] = {0};
diff --git a/kdeprint/driverparse.c b/kdeprint/driverparse.c
index 5a2459c28..7d6462761 100644
--- a/kdeprint/driverparse.c
+++ b/kdeprint/driverparse.c
@@ -280,7 +280,7 @@ int getMaticPrinterInfos(const char *base, const char *id, char *make, char *mod
return 1;
}
-int parseMaticFile(const char *driver, const char *origin, const char *metadata, FILE *output)
+int parseMaticFile(const char *driver, const char * /*origin*/, const char * /*metadata*/, FILE *output)
{
FILE *drFile;
char name[32] = {0},
diff --git a/kdeprint/lpr/make_driver_db_lpr.c b/kdeprint/lpr/make_driver_db_lpr.c
index 848eb967f..b6f3f171b 100644
--- a/kdeprint/lpr/make_driver_db_lpr.c
+++ b/kdeprint/lpr/make_driver_db_lpr.c
@@ -47,7 +47,7 @@ void simplifyModel(const char *modelname)
}
}
-int parseApsFile(const char *filename, FILE *output)
+int parseApsFile(const char *filename, const char * /*origin*/, const char * /*metadata*/, FILE *output)
{
FILE *apsfile;
char buf[256], modelname[256];
@@ -127,7 +127,7 @@ char* nextWord(char *c)
return d;
}
-int parseIfhpFile(const char *filename, FILE *output)
+int parseIfhpFile(const char *filename, const char * /*origin*/, const char * /*metadata*/, FILE *output)
{
char buf[1024];
FILE *in;