]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
that's more clear
authorMatthijs Mekking <matje@NLnetLabs.nl>
Mon, 24 Oct 2011 13:22:16 +0000 (13:22 +0000)
committerMatthijs Mekking <matje@NLnetLabs.nl>
Mon, 24 Oct 2011 13:22:16 +0000 (13:22 +0000)
parse.c

diff --git a/parse.c b/parse.c
index 3689b60ac1b7cbd6687419a9024ed85db30426dd..15cc300f90c711d03d4ef4231d8e557fcd958d10 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -56,7 +56,7 @@ ldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *li
                quoted = 1;
        }
        while ((c = getc(f)) != EOF) {
-               if (c == 13) /* carriage return */
+               if (c == '\r') /* carriage return */
                        c = ' ';
                if (c == '(' && prev_c != '\\' && !quoted) {
                        /* this only counts for non-comments */
@@ -243,7 +243,7 @@ ldns_bget_token(ldns_buffer *b, char *token, const char *delim, size_t limit)
        }
 
        while ((c = ldns_bgetc(b)) != EOF) {
-               if (c == 13) /* carriage return */
+               if (c == '\r') /* carriage return */
                        c = ' ';
                if (c == '(' && lc != '\\' && !quoted) {
                        /* this only counts for non-comments */