diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-01 15:00:15 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-06-13 17:15:28 +0200 |
commit | 4a73fa6fce2d3df39872e2767811ad4d6b533087 (patch) | |
tree | 63e22fbc9693e91900c8c493188283a5e166753c /src | |
parent | a708fcbcb234af8ffe69d04786e44472b45f3559 (diff) |
Fixed spelling
Change-Id: Id7c183face3179a3b9cec7ed128e3a2561d9f3ad
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r-- | src/afb-supervision.c | 4 | ||||
-rw-r--r-- | src/afb-ws-client.c | 4 | ||||
-rw-r--r-- | src/afb-ws-client.h | 8 | ||||
-rw-r--r-- | src/afb-xreq.h | 6 | ||||
-rw-r--r-- | src/afs-config.c | 2 | ||||
-rw-r--r-- | src/afs-main.c | 2 | ||||
-rw-r--r-- | src/afs-supervision.h | 2 | ||||
-rw-r--r-- | src/afs-supervisor.c | 2 |
8 files changed, 15 insertions, 15 deletions
diff --git a/src/afb-supervision.c b/src/afb-supervision.c index fa678ee9..f1024c3c 100644 --- a/src/afb-supervision.c +++ b/src/afb-supervision.c @@ -162,7 +162,7 @@ static void try_connect_supervisor() goto end; } - /* negociation */ + /* negotiation */ do { srd = read(fd, &initiator, sizeof initiator); } while(srd < 0 && errno == EINTR); if (srd < 0) { NOTICE("Can't read supervisor %s: %m", supervisor_socket_path); @@ -232,7 +232,7 @@ static void on_sighup(int signum) } /** - * initalize the supervision + * initialize the supervision */ int afb_supervision_init() { diff --git a/src/afb-ws-client.c b/src/afb-ws-client.c index d694e272..a0c37f31 100644 --- a/src/afb-ws-client.c +++ b/src/afb-ws-client.c @@ -501,10 +501,10 @@ static int get_socket(const char *uri) } /* * Establish a websocket-like client connection to the API of 'uri' and if successful - * instanciate a client afb_proto_ws websocket for this API using 'itf' and 'closure'. + * instantiate a client afb_proto_ws websocket for this API using 'itf' and 'closure'. * (see afb_proto_ws_create_client). * The systemd event loop 'eloop' is used to handle the websocket. - * Returns NULL in case of failure with errno set appriately. + * Returns NULL in case of failure with errno set appropriately. */ struct afb_proto_ws *afb_ws_client_connect_api(struct sd_event *eloop, const char *uri, struct afb_proto_ws_client_itf *itf, void *closure) { diff --git a/src/afb-ws-client.h b/src/afb-ws-client.h index 574eb9b0..620dc50f 100644 --- a/src/afb-ws-client.h +++ b/src/afb-ws-client.h @@ -25,19 +25,19 @@ struct sd_event; /* * Makes the WebSocket handshake at the 'uri' and if successful - * instanciate a wsj1 websocket for this connection using 'itf' and 'closure'. + * instantiate a wsj1 websocket for this connection using 'itf' and 'closure'. * (see afb_wsj1_create). * The systemd event loop 'eloop' is used to handle the websocket. - * Returns NULL in case of failure with errno set appriately. + * Returns NULL in case of failure with errno set appropriately. */ extern struct afb_wsj1 *afb_ws_client_connect_wsj1(struct sd_event *eloop, const char *uri, struct afb_wsj1_itf *itf, void *closure); /* * Establish a websocket-like client connection to the API of 'uri' and if successful - * instanciate a client afb_proto_ws websocket for this API using 'itf' and 'closure'. + * instantiate a client afb_proto_ws websocket for this API using 'itf' and 'closure'. * (see afb_proto_ws_create_client). * The systemd event loop 'eloop' is used to handle the websocket. - * Returns NULL in case of failure with errno set appriately. + * Returns NULL in case of failure with errno set appropriately. */ extern struct afb_proto_ws *afb_ws_client_connect_api(struct sd_event *eloop, const char *uri, struct afb_proto_ws_client_itf *itf, void *closure); diff --git a/src/afb-xreq.h b/src/afb-xreq.h index e2b09db0..ae1419fb 100644 --- a/src/afb-xreq.h +++ b/src/afb-xreq.h @@ -60,7 +60,7 @@ struct afb_xreq struct afb_context context; /**< context of the request */ struct afb_apiset *apiset; /**< apiset of the xreq */ struct json_object *json; /**< the json object (or NULL) */ - const struct afb_xreq_query_itf *queryitf; /**< interface of xreq implmentation functions */ + const struct afb_xreq_query_itf *queryitf; /**< interface of xreq implementation functions */ int refcount; /**< current ref count */ int replied; /**< is replied? */ int hookflags; /**< flags for hooking */ @@ -72,7 +72,7 @@ struct afb_xreq /** * Macro for retrieve the pointer of a structure of 'type' having a field named 'field' - * of adress 'ptr'. + * of address 'ptr'. * @param type the type that has the 'field' (ex: "struct mystruct") * @param field the name of the field within the structure 'type' * @param ptr the pointer to an element 'field' @@ -82,7 +82,7 @@ struct afb_xreq /** * Macro for retrieve the pointer of a structure of 'type' having a field named "xreq" - * of adress 'x'. + * of address 'x'. * @param type the type that has the field "xreq" (ex: "struct mystruct") * @param x the pointer to the field "xreq" * @return the pointer to the structure that contains the field "xreq" of address 'x' diff --git a/src/afs-config.c b/src/afs-config.c index 71d5ab74..78fee7dc 100644 --- a/src/afs-config.c +++ b/src/afs-config.c @@ -114,7 +114,7 @@ static AFB_options cliOptions[] = { {SET_AUTH_TOKEN, 1, "token", "Initial Secret [default=" AFS_SUPERVISOR_TOKEN ", use --token="" to allow any token]"}, - {WS_SERVICE, 1, "ws-server", "Povide supervisor as websocket"}, + {WS_SERVICE, 1, "ws-server", "Provide supervisor as websocket"}, {DISPLAY_VERSION, 0, "version", "Display version and copyright"}, {DISPLAY_HELP, 0, "help", "Display this help"}, diff --git a/src/afs-main.c b/src/afs-main.c index 93e49323..88e4757f 100644 --- a/src/afs-main.c +++ b/src/afs-main.c @@ -187,7 +187,7 @@ error: } /** - * initalize the supervision + * initialize the supervision */ int main(int ac, char **av) { diff --git a/src/afs-supervision.h b/src/afs-supervision.h index bee40a1a..2c76f249 100644 --- a/src/afs-supervision.h +++ b/src/afs-supervision.h @@ -37,7 +37,7 @@ /** - * packet initialy sent by monitor at start + * packet initially sent by monitor at start */ struct afs_supervision_initiator { diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c index 62adf9b6..285d82cb 100644 --- a/src/afs-supervisor.c +++ b/src/afs-supervisor.c @@ -401,7 +401,7 @@ static void f_debug_break(struct afb_req req) /*************************************************************************************/ /** - * initalize the supervisor + * initialize the supervisor */ static int init_supervisor() { |