From 1e9a7849dea2bea24feab33e992b1cc56cdea0e8 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 5 Mar 2018 16:08:00 +0100 Subject: [PATCH] Spelling corrections in the spec --- spec/example/example-reverse.c | 2 +- spec/example/example-simple-answers.c | 2 +- spec/example/example-tree.c | 2 +- spec/index.html | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/example/example-reverse.c b/spec/example/example-reverse.c index 4b92040d..3a5e938a 100644 --- a/spec/example/example-reverse.c +++ b/spec/example/example-reverse.c @@ -31,7 +31,7 @@ void callback(getdns_context *context, assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_list(response, "/replies_tree/0/answer", &answer))) - fprintf(stderr, "Could not get \"answer\" section from first reply in the reponse"); + fprintf(stderr, "Could not get \"answer\" section from first reply in the response"); else if ((r = getdns_list_get_length(answer, &n_answers))) fprintf(stderr, "Could not get replies_tree\'s length"); diff --git a/spec/example/example-simple-answers.c b/spec/example/example-simple-answers.c index a861e0f6..2203ce3b 100644 --- a/spec/example/example-simple-answers.c +++ b/spec/example/example-simple-answers.c @@ -35,7 +35,7 @@ void callback(getdns_context *context, assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_int(response, "status", &status))) - fprintf(stderr, "Could not get \"status\" from reponse"); + fprintf(stderr, "Could not get \"status\" from response"); else if (status != GETDNS_RESPSTATUS_GOOD) fprintf(stderr, "The search had no results, and a return value of %"PRIu32".\n", status); diff --git a/spec/example/example-tree.c b/spec/example/example-tree.c index f88299bb..8536aea9 100644 --- a/spec/example/example-tree.c +++ b/spec/example/example-tree.c @@ -31,7 +31,7 @@ void callback(getdns_context *context, assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_list(response, "replies_tree", &replies_tree))) - fprintf(stderr, "Could not get \"replies_tree\" from reponse"); + fprintf(stderr, "Could not get \"replies_tree\" from response"); else if ((r = getdns_list_get_length(replies_tree, &n_replies))) fprintf(stderr, "Could not get replies_tree\'s length"); diff --git a/spec/index.html b/spec/index.html index 6888489f..d2623e4c 100644 --- a/spec/index.html +++ b/spec/index.html @@ -173,7 +173,7 @@ extensions. See the section below for information on h the extensions used for a request.

*userarg

-

A void* that is passed to the function, which the funciton +

A void* that is passed to the function, which the function returns to the callback function untouched. userarg can be used by the callback function for any user-specific data needed. This can be NULL.

@@ -1507,7 +1507,7 @@ function.

assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_int(response, "status", &status))) - fprintf(stderr, "Could not get \"status\" from reponse"); + fprintf(stderr, "Could not get \"status\" from response"); else if (status != GETDNS_RESPSTATUS_GOOD) fprintf(stderr, "The search had no results, and a return value of %"PRIu32".\n", status); @@ -1622,7 +1622,7 @@ their TTLs.

assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_list(response, "replies_tree", &replies_tree))) - fprintf(stderr, "Could not get \"replies_tree\" from reponse"); + fprintf(stderr, "Could not get \"replies_tree\" from response"); else if ((r = getdns_list_get_length(replies_tree, &n_replies))) fprintf(stderr, "Could not get replies_tree\'s length"); @@ -1854,7 +1854,7 @@ as it is for the synchronous example, it is just done in main().

assert( callback_type == GETDNS_CALLBACK_COMPLETE ); if ((r = getdns_dict_get_list(response, "/replies_tree/0/answer", &answer))) - fprintf(stderr, "Could not get \"answer\" section from first reply in the reponse"); + fprintf(stderr, "Could not get \"answer\" section from first reply in the response"); else if ((r = getdns_list_get_length(answer, &n_answers))) fprintf(stderr, "Could not get replies_tree\'s length");