35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
diff -urN xpp-1.1/cupshelper.cxx xpp-1.1-modified/cupshelper.cxx
|
|
--- xpp-1.1/cupshelper.cxx 2002-01-09 07:34:17.000000000 -0600
|
|
+++ xpp-1.1-modified/cupshelper.cxx 2002-10-04 09:07:59.000000000 -0500
|
|
@@ -67,14 +67,14 @@
|
|
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);
|
|
diff -urN xpp-1.1/cupshelper.h xpp-1.1-modified/cupshelper.h
|
|
--- xpp-1.1/cupshelper.h 2002-01-09 07:34:17.000000000 -0600
|
|
+++ xpp-1.1-modified/cupshelper.h 2002-10-04 09:08:15.000000000 -0500
|
|
@@ -51,8 +51,8 @@
|
|
public:
|
|
CupsHelper();
|
|
~CupsHelper();
|
|
- static void setLoginInfo(const char *usr = 0, const char *pwd = 0);
|
|
- static void setHostInfo(const char *host, int port = 631);
|
|
+ static void setLoginInfo(const char *usr, const char *pwd);
|
|
+ static void setHostInfo(const char *host, int port);
|
|
static int port();
|
|
static const char* host();
|
|
static const char* password();
|