mirror of https://git.kore.io/kore.git
Fix a couple of typos in the bundled examples.
This commit is contained in:
parent
bae117b68c
commit
78ff364c8d
|
@ -122,7 +122,7 @@ state_result(struct http_request *req)
|
||||||
*/
|
*/
|
||||||
kore_curl_response_as_bytes(client, &body, &len);
|
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))
|
if (kore_curl_http_get_header(client, "server", &header))
|
||||||
printf("got server header: '%s'\n", header);
|
printf("got server header: '%s'\n", header);
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ connection_setup(struct connection *c)
|
||||||
* net_send_flush() or net_recv_flush() if KORE_EVENT_WRITE or
|
* net_send_flush() or net_recv_flush() if KORE_EVENT_WRITE or
|
||||||
* KORE_EVENT_READ are set respectively in c->evt.flags.
|
* KORE_EVENT_READ are set respectively in c->evt.flags.
|
||||||
* Returning KORE_RESULT_ERROR from this callback will disconnect the
|
* Returning KORE_RESULT_ERROR from this callback will disconnect the
|
||||||
* connection alltogether.
|
* connection altogether.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
connection_handle(struct connection *c)
|
connection_handle(struct connection *c)
|
||||||
|
|
|
@ -64,7 +64,7 @@ page(struct http_request *req)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now we can fire off the query, once it returns we either have
|
* 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")) {
|
if (!kore_pgsql_query(&sql, "SELECT * FROM coders")) {
|
||||||
kore_pgsql_logerror(&sql);
|
kore_pgsql_logerror(&sql);
|
||||||
|
|
Loading…
Reference in New Issue