pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/xpp Don't put default arguments belong only in f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1610fa67e220
branches: trunk
changeset: 466016:1610fa67e220
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Jan 10 09:26:33 2004 +0000
description:
Don't put default arguments belong only in function declarations, not in
function definitions.
diffstat:
print/xpp/distinfo | 3 ++-
print/xpp/patches/patch-ac | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 47e7caa64b2b -r 1610fa67e220 print/xpp/distinfo
--- a/print/xpp/distinfo Sat Jan 10 08:40:07 2004 +0000
+++ b/print/xpp/distinfo Sat Jan 10 09:26:33 2004 +0000
@@ -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 -r 47e7caa64b2b -r 1610fa67e220 print/xpp/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/xpp/patches/patch-ac Sat Jan 10 09:26:33 2004 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index