Revision: 14596
Author: [email protected]
Date: Mon Apr 12 00:02:45 2010
Log: Remove a type casting to suppress a compiler warning
http://code.google.com/p/lusca-cache/source/detail?r=14596

Modified:
 /branches/LUSCA_HEAD/src/dns_internal.c

=======================================
--- /branches/LUSCA_HEAD/src/dns_internal.c     Tue Apr  6 16:31:56 2010
+++ /branches/LUSCA_HEAD/src/dns_internal.c     Mon Apr 12 00:02:45 2010
@@ -144,13 +144,15 @@
 static void
 idnsParseWIN32SearchList(const char *Separator)
 {
-    char *t;
+    const char *t;
     char *token;
     HKEY hndKey;

     if (RegOpenKey(HKEY_LOCAL_MACHINE,
            "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
            &hndKey) == ERROR_SUCCESS) {
+       char *t;
+
        DWORD Type = 0;
        DWORD Size = 0;
        LONG Result;
@@ -186,7 +188,7 @@
        }
        RegCloseKey(hndKey);
     }
-    if (npc == 0 && ((const char *) t = getMyHostname())) {
+    if (npc == 0 && (t = getMyHostname())) {
        t = strchr(t, '.');
        if (t)
            idnsAddPathComponent(t + 1);

--
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