[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeprint/cups
From:       Helio Chissini de Castro <helio () kde ! org>
Date:       2007-08-25 14:54:44
Message-ID: 1188053684.151514.14753.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 704615 by helio:

- Better add check for new api... 

 M  +8 -0      ipprequest.cpp  


--- trunk/KDE/kdelibs/kdeprint/cups/ipprequest.cpp #704614:704615
@@ -308,8 +308,12 @@
 	}
 
 #ifdef HAVE_CUPS_NO_PWD_CACHE
+#ifdef CUPS_VERSION < 1.0300
+    strncpy(  HTTP->authstring, cups_authstring.data(), HTTP_MAX_VALUE );
+#else
 	strncpy( httpGetAuthString( HTTP ), cups_authstring.data(), HTTP_MAX_VALUE );
 #endif
+#endif
 
 	if (dump_ > 0)
 	{
@@ -318,8 +322,12 @@
 
 	request_ = cupsDoFileRequest(HTTP, request_, (res.isEmpty() ? "/" : \
qPrintable(res)), (filename.isEmpty() ? NULL : qPrintable(filename)));  #ifdef \
HAVE_CUPS_NO_PWD_CACHE +#ifdef CUPS_VERSION < 1.0300
+    cups_authstring = HTTP->authstring;
+#else
 	cups_authstring = httpGetAuthString( HTTP );
 #endif
+#endif
 	httpClose(HTTP);
 
 	if (dump_ > 1)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic