Merged revisions 74388 via svnmerge from
authorJason Parker <jparker@digium.com>
Tue, 10 Jul 2007 19:11:25 +0000 (19:11 +0000)
committerJason Parker <jparker@digium.com>
Tue, 10 Jul 2007 19:11:25 +0000 (19:11 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r74388 | qwell | 2007-07-10 14:10:36 -0500 (Tue, 10 Jul 2007) | 4 lines

Don't use #if to check if something is defined - use #ifdef instead.

Pointed out by kpfleming

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dns.c

index d922435..3456d9b 100644 (file)
@@ -229,7 +229,7 @@ int ast_search_dns(void *context,
                        ret = 1;
        }
 #ifdef HAVE_RES_NINIT
                        ret = 1;
        }
 #ifdef HAVE_RES_NINIT
-#if HAVE_RES_NDESTROY
+#ifdef HAVE_RES_NDESTROY
        res_ndestroy(&dnsstate);
 #else
        res_nclose(&dnsstate);
        res_ndestroy(&dnsstate);
 #else
        res_nclose(&dnsstate);