[pisa-src] r954 - trunk/test

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 08 Sep 2009 14:38:03 +0200

Author: Tjansen
Date: Tue Sep  8 14:38:02 2009
New Revision: 954

Log:
Use the defined location of resolv.conf rather than a hardcoded one.
Eliminates one difference between the test and the real application.

Modified:
   trunk/test/getns.c

Modified: trunk/test/getns.c
==============================================================================
--- trunk/test/getns.c  Tue Sep  8 14:18:37 2009        (r953)
+++ trunk/test/getns.c  Tue Sep  8 14:38:02 2009        (r954)
@@ -4,11 +4,12 @@
  */
 
 #include "util.h"
+#include "global.h"
 
 int main(void)
 {
        struct in_addr dns = {0};
-       if (pisa_read_nameserver(&dns, "/etc/resolv.conf") != 0)
+       if (pisa_read_nameserver(&dns, PISA_RESOLVCONF_PATH) != 0)
                printf("pisa_read_nameserver failed.\n");
        printf("First DNS server is: %s\n", inet_ntoa(dns));
        return 0;

Other related posts:

  • » [pisa-src] r954 - trunk/test - Thomas Jansen