Fix a couple of typos in the bundled examples.

This commit is contained in:
Frederic Cambus 2019-06-09 21:18:12 +02:00 committed by Joris Vink
parent bae117b68c
commit 78ff364c8d
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ state_result(struct http_request *req)
*/
kore_curl_response_as_bytes(client, &body, &len);
/* We could check the existance of a header: */
/* We could check the existence of a header: */
if (kore_curl_http_get_header(client, "server", &header))
printf("got server header: '%s'\n", header);

View File

@ -59,7 +59,7 @@ connection_setup(struct connection *c)
* net_send_flush() or net_recv_flush() if KORE_EVENT_WRITE or
* KORE_EVENT_READ are set respectively in c->evt.flags.
* Returning KORE_RESULT_ERROR from this callback will disconnect the
* connection alltogether.
* connection altogether.
*/
int
connection_handle(struct connection *c)

View File

@ -64,7 +64,7 @@ page(struct http_request *req)
/*
* Now we can fire off the query, once it returns we either have
* a result on which we can operate or an error occured.
* a result on which we can operate or an error occurred.
*/
if (!kore_pgsql_query(&sql, "SELECT * FROM coders")) {
kore_pgsql_logerror(&sql);