]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
moved int i declaration
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Fri, 4 Feb 2005 11:04:28 +0000 (11:04 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Fri, 4 Feb 2005 11:04:28 +0000 (11:04 +0000)
str2host.c

index 8e6f7fc73b3c948bdf9a98aea1ad37574f29cc1d..eadf1005cb23bb1942ad5073f39dbea42162d99e 100644 (file)
@@ -152,6 +152,7 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str)
        size_t len;
        size_t octet_len;
        ldns_status stat;
+       int i = 0;
 
        uint8_t *s,*p,*q;
        uint8_t buf_str[MAXDOMAINLEN + 1];
@@ -198,7 +199,7 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str)
         * p on the previous one
         * q builds the dname
         */
-       q = buf; int i = 0;
+       q = buf;
        for (s = p = buf_str; *s; s++) {
                printf("going in %d\n", i++);
                if (*s == '.') {