From 99b067d5099b1f415f37eab8645409f7df1e8fb2 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 10 Jan 2004 09:26:33 +0000 Subject: Don't put default arguments belong only in function declarations, not in function definitions. --- print/xpp/distinfo | 3 ++- print/xpp/patches/patch-ac | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 print/xpp/patches/patch-ac (limited to 'print/xpp') diff --git a/print/xpp/distinfo b/print/xpp/distinfo index b20aa207d8b..3ea8bf4e192 100644 --- a/print/xpp/distinfo +++ b/print/xpp/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2002/09/18 23:55:51 jlam Exp $ +$NetBSD: distinfo,v 1.5 2004/01/10 09:26:33 jlam Exp $ SHA1 (xpp-1.1.tar.gz) = 0f9b54690d38e9a7ec810213c9cdc3d6ea71480d Size (xpp-1.1.tar.gz) = 72611 bytes SHA1 (patch-aa) = 7658afc3b1f2bff134f648aebf2ba26f2f7a8a29 SHA1 (patch-ab) = 6bb5cb292f5ac24b461b86fc8707595ba99094ef +SHA1 (patch-ac) = a484ba121ca489bb8cfd45b4b993e8bd58c9e083 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); -- cgit v1.2.3