blob: 8decae9903ef0d1c15ad807a8c03a169b3cbf305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
|