summaryrefslogtreecommitdiffstats
path: root/tdeprint/lpr/make_driver_db_lpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/lpr/make_driver_db_lpr.c')
-rw-r--r--tdeprint/lpr/make_driver_db_lpr.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/tdeprint/lpr/make_driver_db_lpr.c b/tdeprint/lpr/make_driver_db_lpr.c
index fabbcb2fe..17fa25bf5 100644
--- a/tdeprint/lpr/make_driver_db_lpr.c
+++ b/tdeprint/lpr/make_driver_db_lpr.c
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ * Copyright (c) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
#include <config.h>
#include <stdio.h>
#include <string.h>
@@ -94,7 +114,7 @@ void initAps(const char *base)
gsversion = 1;
}
snprintf(drFile, 256, "apsfilter:%s/%s", base, d->d_name);
- addFile(drFile);
+ addFile(drFile, "");
}
closedir(apsdir);
}
@@ -179,7 +199,7 @@ void initIfhp(const char *base)
snprintf(path, 255, "lprngtool:%s/printerdb", base);
if (access(path+10, R_OK) == 0)
{
- addFile(path);
+ addFile(path, "");
}
}