CLEANUP: assorted typo fixes in the code and comments
This is fifth iteration of typo fixes
diff --git a/contrib/spoa_server/ps_lua.c b/contrib/spoa_server/ps_lua.c
index e7de2d9..2d37d9b 100644
--- a/contrib/spoa_server/ps_lua.c
+++ b/contrib/spoa_server/ps_lua.c
@@ -396,7 +396,7 @@
lua_pop(L, 1);
return 0;
default:
- fprintf(stderr, "lua unknonwn error: %s\n", lua_tostring(L, 0));
+ fprintf(stderr, "lua unknown error: %s\n", lua_tostring(L, 0));
lua_pop(L, 1);
return 0;
}
@@ -488,7 +488,7 @@
case LUA_ERRERR:
msg_fmt = msg_fmt ? msg_fmt : "Lua message handler error";
default:
- msg_fmt = msg_fmt ? msg_fmt : "Lua unknonwn error";
+ msg_fmt = msg_fmt ? msg_fmt : "Lua unknown error";
msg = lua_tostring(L, -1);
if (msg == NULL)
msg = "Unknown error";
diff --git a/contrib/spoa_server/ps_python.c b/contrib/spoa_server/ps_python.c
index 0a9fbff..2dbe5ee 100644
--- a/contrib/spoa_server/ps_python.c
+++ b/contrib/spoa_server/ps_python.c
@@ -50,7 +50,7 @@
if (!PyArg_ParseTuple(args, "sO!", &name, &PyFunction_Type, &ref))
return NULL;
- Py_XINCREF(ref); /* because the function is intenally refrenced */
+ Py_XINCREF(ref); /* because the function is internally referenced */
ps_register_message(&ps_python_bindings, name, (void *)ref);
@@ -602,7 +602,7 @@
}
}
- /* Dictionnary { args = <list-of-args> } for the function */
+ /* Dictionary { args = <list-of-args> } for the function */
fkw = PyDict_New();
if (fkw == NULL) {
diff --git a/contrib/spoa_server/spoa.c b/contrib/spoa_server/spoa.c
index f36c3db..9a8ffd0 100644
--- a/contrib/spoa_server/spoa.c
+++ b/contrib/spoa_server/spoa.c
@@ -51,7 +51,7 @@
SPOE_FRM_T_AGENT_ACK
};
-/* Errors triggerd by SPOE applet */
+/* Errors triggered by SPOE applet */
enum spoe_frame_error {
SPOE_FRM_ERR_NONE = 0,
SPOE_FRM_ERR_IO,
@@ -501,7 +501,7 @@
return -1;
}
- /* TODO: Find the right verion in supported ones */
+ /* TODO: Find the right version in supported ones */
return idx;
}
@@ -822,7 +822,7 @@
}
/* This function is a little bit ugly,
- * TODO: improve the response without copying the bufer
+ * TODO: improve the response without copying the buffer
*/
static int commit_agentack(struct worker *w)
{
@@ -872,7 +872,7 @@
DEBUG("Notify frame received: stream-id=%u - frame-id=%u",
w->stream_id, w->frame_id);
- /* Prepara ack, if the processing fails tha ack will be cancelled */
+ /* Prepare ack, if the processing fails the ack will be cancelled */
prepare_agentack(w);
/* Loop on messages */
@@ -915,7 +915,7 @@
idx += i;
}
- /* Lookup for existsing bindings. If no existing message
+ /* Lookup for existing bindings. If no existing message
* where found, does nothing.
*/
for (msg = ps_messages; msg; msg = msg->next)