summaryrefslogtreecommitdiff
path: root/print/xpp/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-10 09:26:33 +0000
committerjlam <jlam@pkgsrc.org>2004-01-10 09:26:33 +0000
commitfb61fa4f8207898b2a0cfbb8aa361601f3439367 (patch)
tree4a05f32ea686aec305d86048949b8e3aac30b693 /print/xpp/patches
parent1e60f2af540ae57623455250021ea00c112ae973 (diff)
downloadpkgsrc-fb61fa4f8207898b2a0cfbb8aa361601f3439367.tar.gz
Don't put default arguments belong only in function declarations, not in
function definitions.
Diffstat (limited to 'print/xpp/patches')
-rw-r--r--print/xpp/patches/patch-ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/print/xpp/patches/patch-ac b/print/xpp/patches/patch-ac
new file mode 100644
index 00000000000..8decae9903e
--- /dev/null
+++ b/print/xpp/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2004/01/10 09:26:33 jlam Exp $
+
+--- cupshelper.cxx.orig Wed Jan 9 08:34:17 2002
++++ cupshelper.cxx
+@@ -67,14 +67,14 @@ int CupsHelper::port(){
+ return port_;
+ }
+
+-void CupsHelper::setHostInfo(const char *host, int port = 631){
++void CupsHelper::setHostInfo(const char *host, int port){
+ strcpy(host_,host);
+ cupsSetServer(host_);
+ port_ = port;
+ ippSetPort(port_);
+ }
+
+-void CupsHelper::setLoginInfo(const char *usr = 0, const char *pwd = 0){
++void CupsHelper::setLoginInfo(const char *usr, const char *pwd){
+ strcpy(login_,usr);
+ cupsSetUser(login_);
+ strcpy(password_,pwd);