Author: adrian.chadd
Date: Mon Feb  2 10:59:28 2009
New Revision: 13785

Modified:
    branches/LUSCA_HEAD/src/internal.c

Log:
strBuf() eliminiation.



Modified: branches/LUSCA_HEAD/src/internal.c
==============================================================================
--- branches/LUSCA_HEAD/src/internal.c  (original)
+++ branches/LUSCA_HEAD/src/internal.c  Mon Feb  2 10:59:28 2009
@@ -43,12 +43,12 @@
  internalStart(request_t * request, StoreEntry * entry)
  {
      ErrorState *err;
-    const char *upath = strBuf(request->urlpath);
-    debug(76, 3) ("internalStart: %s requesting '%s'\n",
-       inet_ntoa(request->client_addr), upath);
-    if (0 == strcmp(upath, "/squid-internal-dynamic/netdb")) {
+
+    debug(76, 3) ("internalStart: %s requesting '%.*s'\n",
+       inet_ntoa(request->client_addr), strLen2(request->urlpath),  
strBuf2(request->urlpath));
+    if (strCmp(request->urlpath, "/squid-internal-dynamic/netdb") == 0) {
        netdbBinaryExchange(entry);
-    } else if (0 ==  
strcmp(upath, "/squid-internal-periodic/store_digest")) {
+    } else if  
(strCmp(request->urlpath, "/squid-internal-periodic/store_digest") == 0) {
  #if USE_CACHE_DIGESTS
        const char *msgbuf = "This cache is currently building its digest.\n";
  #else

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to