diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-10 09:26:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-10 09:26:33 +0000 |
commit | 6f726430cf14ebeaf41b2c732ed180cf5e5b8790 (patch) | |
tree | 4a05f32ea686aec305d86048949b8e3aac30b693 /print/xpp/patches | |
parent | 0f7a5528c222990819821da8a19014e2cb38baef (diff) | |
download | pkgsrc-6f726430cf14ebeaf41b2c732ed180cf5e5b8790.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-ac | 21 |
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); |