Skip to content

Commit 04a42c6

Browse files
authored
Merge pull request unbit#1663 from faulkner/typos
Fix a few typos.
2 parents 1d5cf14 + e839e77 commit 04a42c6

File tree

34 files changed

+48
-48
lines changed

34 files changed

+48
-48
lines changed

contrib/runuwsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def handle(self, *args, **options):
5858
# exec the uwsgi binary
5959
os.execvp('uwsgi', ('uwsgi',))
6060

61-
def usage(self, subcomand):
61+
def usage(self, subcommand):
6262
return r"""
6363
run this project on the uWSGI server
6464

core/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ struct uwsgi_cache *uwsgi_cache_create(char *arg) {
12381238
uwsgi.caches = uc;
12391239
}
12401240

1241-
// default (old-stye) cache ?
1241+
// default (old-style) cache ?
12421242
if (!arg) {
12431243
uc->name = "default";
12441244
uc->name_len = strlen(uc->name);

core/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ char *uwsgi_get_optname_by_index(int index) {
760760
761761
translate as:
762762
763-
step1 = proceses cpu_cores = 2 8 = 28 (string concatenation)
763+
step1 = processes cpu_cores = 2 8 = 28 (string concatenation)
764764
765765
step1 + = step1_apply_func_plus (func token)
766766

core/emperor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,8 +2905,8 @@ void uwsgi_emperor_simple_do_with_attrs(struct uwsgi_emperor_scanner *ues, char
29052905
}
29062906
// check if mtime is changed and the uWSGI instance must be reloaded
29072907
if (ts > ui_current->last_mod) {
2908-
// now we neeed a special check for allowing an instance to move to "on_demand" mode (and back)
2909-
// allowing means "stoppping the instance"
2908+
// now we need a special check for allowing an instance to move to "on_demand" mode (and back)
2909+
// allowing means "stopping the instance"
29102910
if ((!ui_current->socket_name && ui_current->on_demand_fd == -1) && socket_name) {
29112911
uwsgi_log("[uwsgi-emperor] %s -> requested move to \"on demand\" mode for socket \"%s\" ...\n", name, socket_name);
29122912
emperor_stop(ui_current);

core/fork_server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void uwsgi_fork_server(char *socket) {
103103
}
104104
else if (pid > 0) {
105105
free(body_argv);
106-
// close inherited decriptors
106+
// close inherited descriptors
107107
int i;
108108
for(i=0;i<fds_count;i++) close(fds[i]);
109109
// wait for child death...
@@ -112,7 +112,7 @@ void uwsgi_fork_server(char *socket) {
112112
}
113113
else {
114114
// close Emperor channels
115-
// we do not close others file desctiptor as lot
115+
// we do not close others file descriptor as lot
116116
// of funny tricks could be accomplished with them
117117
if (uwsgi.has_emperor) {
118118
close(uwsgi.emperor_fd);

core/master.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void uwsgi_master_check_mercy() {
167167
if (uwsgi.workers[i].pid > 0 && uwsgi.workers[i].cursed_at) {
168168
if (uwsgi_now() > uwsgi.workers[i].no_mercy_at) {
169169
uwsgi_log_verbose("worker %d (pid: %d) is taking too much time to die...NO MERCY !!!\n", i, uwsgi.workers[i].pid);
170-
// yes that look strangem but we avoid callign it again if we skip waitpid() call below
170+
// yes that looks strange but we avoid calling it again if we skip waitpid() call below
171171
uwsgi_curse(i, SIGKILL);
172172
}
173173
}
@@ -659,7 +659,7 @@ int master_loop(char **argv, char **environ) {
659659

660660
// check for death (before reload !!!)
661661
uwsgi_master_check_death();
662-
// check for realod
662+
// check for reload
663663
if (uwsgi_master_check_reload(argv)) {
664664
return -1;
665665
}
@@ -1082,7 +1082,7 @@ int master_loop(char **argv, char **environ) {
10821082
}
10831083
// manage_next_request is zero, but killed by signal...
10841084
else if (WIFSIGNALED(waitpid_status)) {
1085-
uwsgi_log("DAMN ! worker %d (pid: %d) MISTERIOUSLY killed by signal %d :( trying respawn ...\n", thewid, (int) diedpid, (int) WTERMSIG(waitpid_status));
1085+
uwsgi_log("DAMN ! worker %d (pid: %d) MYSTERIOUSLY killed by signal %d :( trying respawn ...\n", thewid, (int) diedpid, (int) WTERMSIG(waitpid_status));
10861086
}
10871087

10881088
if (uwsgi.workers[thewid].cheaped == 1) {

core/master_utils.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ int uwsgi_cheaper_algo_manual(int can_spawn) {
237237
238238
when at least one worker is free, the overload_count is decremented and the idle_count is incremented.
239239
If overload_count reaches 0, the system will count active workers (the ones uncheaped) and busy workers (the ones running a request)
240-
if there is exacly 1 free worker we are in "stable state" (1 spare worker available). no worker will be touched.
240+
if there is exactly 1 free worker we are in "stable state" (1 spare worker available). no worker will be touched.
241241
if the number of active workers is higher than uwsgi.cheaper_count and at least uwsgi.cheaper_overload cycles are passed from the last
242242
"cheap it" procedure, then cheap a worker.
243243
@@ -351,7 +351,7 @@ int uwsgi_cheaper_algo_spare(int can_spawn) {
351351
352352
This algorithm increase workers *before* overloaded, and decrease workers slowly.
353353
354-
This algorithm uses these options: chaper, cheaper-initial, cheaper-step and cheaper-idle.
354+
This algorithm uses these options: cheaper, cheaper-initial, cheaper-step and cheaper-idle.
355355
356356
* When number of idle workers is smaller than cheaper count, increase
357357
min(cheaper-step, cheaper - idle workers) workers.
@@ -506,7 +506,7 @@ void uwsgi_reload(char **argv) {
506506
uwsgi_error("uwsgi_reload()/chdir()");
507507
}
508508

509-
/* check fd table (a module can obviosly open some fd on initialization...) */
509+
/* check fd table (a module can obviously open some fd on initialization...) */
510510
uwsgi_log("closing all non-uwsgi socket fds > 2 (max_fd = %d)...\n", (int) uwsgi.max_fd);
511511
for (i = 3; i < (int) uwsgi.max_fd; i++) {
512512
if (uwsgi.close_on_exec2) fcntl(i, F_SETFD, 0);

core/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ void uwsgi_route_signal(uint8_t sig) {
336336
}
337337
}
338338
}
339-
// send to al lactive workers
339+
// send to all active workers
340340
else if (!strcmp(use->receiver, "active-workers")) {
341341
for (i = 1; i <= uwsgi.numproc; i++) {
342342
if (uwsgi.workers[i].pid > 0 && !uwsgi.workers[i].cheaped && !uwsgi.workers[i].suspended) {

core/spooler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void uwsgi_spooler_cheap_check() {
743743
// this trick for avoiding spawning multiple processes for the same dir
744744
// in the same cycle
745745
if (!last_managed || strcmp(last_managed, uspool->dir)) {
746-
// unfortunately, reusing readdir/scandir of the spooler is too dungeorus
746+
// unfortunately, reusing readdir/scandir of the spooler is too dangerous
747747
// as the code is run in the master, let's do a simpler check
748748
struct dirent *dp;
749749
DIR *sdir = opendir(uspool->dir);

core/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4502,7 +4502,7 @@ void uwsgi_setns(char *path) {
45024502
exit(1);
45034503
}
45044504

4505-
// cound be overwritten
4505+
// count be overwritten
45064506
int count = 64;
45074507

45084508
uwsgi_log("joining namespaces from %s ...\n", path);

core/uwsgi.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static struct uwsgi_option uwsgi_base_options[] = {
107107
{"declare-option", required_argument, 0, "declare a new uWSGI custom option", uwsgi_opt_add_custom_option, NULL, UWSGI_OPT_IMMEDIATE},
108108
{"declare-option2", required_argument, 0, "declare a new uWSGI custom option (non-immediate)", uwsgi_opt_add_custom_option, NULL, 0},
109109

110-
{"resolve", required_argument, 0, "place the result of a dns query in the specified placeholder, sytax: placeholder=name (immediate option)", uwsgi_opt_resolve, NULL, UWSGI_OPT_IMMEDIATE},
110+
{"resolve", required_argument, 0, "place the result of a dns query in the specified placeholder, syntax: placeholder=name (immediate option)", uwsgi_opt_resolve, NULL, UWSGI_OPT_IMMEDIATE},
111111

112112
{"for", required_argument, 0, "(opt logic) for cycle", uwsgi_opt_logic, (void *) uwsgi_logic_opt_for, UWSGI_OPT_IMMEDIATE},
113113
{"for-glob", required_argument, 0, "(opt logic) for cycle (expand glob)", uwsgi_opt_logic, (void *) uwsgi_logic_opt_for_glob, UWSGI_OPT_IMMEDIATE},
@@ -235,7 +235,7 @@ static struct uwsgi_option uwsgi_base_options[] = {
235235
{"emperor-command-socket", required_argument, 0, "enable the Emperor command socket", uwsgi_opt_set_str, &uwsgi.emperor_command_socket, 0},
236236
{"emperor-wait-for-command", no_argument, 0, "always wait for a 'spawn' Emperor command before starting a vassal", uwsgi_opt_true, &uwsgi.emperor_wait_for_command, 0},
237237
{"emperor-wait-for-command-ignore", required_argument, 0, "ignore the emperor-wait-for-command directive for the specified vassal", uwsgi_opt_add_string_list, &uwsgi.emperor_wait_for_command_ignore, 0},
238-
{"early-emperor", no_argument, 0, "spawn the emperor as soon as possibile", uwsgi_opt_true, &uwsgi.early_emperor, 0},
238+
{"early-emperor", no_argument, 0, "spawn the emperor as soon as possible", uwsgi_opt_true, &uwsgi.early_emperor, 0},
239239
{"emperor-broodlord", required_argument, 0, "run the emperor in BroodLord mode", uwsgi_opt_set_int, &uwsgi.emperor_broodlord, 0},
240240
{"emperor-throttle", required_argument, 0, "set throttling level (in milliseconds) for bad behaving vassals (default 1000)", uwsgi_opt_set_int, &uwsgi.emperor_throttle, 0},
241241
{"emperor-max-throttle", required_argument, 0, "set max throttling level (in milliseconds) for bad behaving vassals (default 3 minutes)", uwsgi_opt_set_int, &uwsgi.emperor_max_throttle, 0},
@@ -697,7 +697,7 @@ static struct uwsgi_option uwsgi_base_options[] = {
697697
{"start-unsubscribed", no_argument, 0, "configure subscriptions but do not send them (useful with master fifo)", uwsgi_opt_true, &uwsgi.subscriptions_blocked, 0},
698698
{"subscription-clear-on-shutdown", no_argument, 0, "force clear instead of unsubscribe during shutdown", uwsgi_opt_true, &uwsgi.subscription_clear_on_shutdown, 0},
699699

700-
{"subscribe-with-modifier1", required_argument, 0, "force the specififed modifier1 when subscribing", uwsgi_opt_set_str, &uwsgi.subscribe_with_modifier1, UWSGI_OPT_MASTER},
700+
{"subscribe-with-modifier1", required_argument, 0, "force the specified modifier1 when subscribing", uwsgi_opt_set_str, &uwsgi.subscribe_with_modifier1, UWSGI_OPT_MASTER},
701701

702702
{"snmp", optional_argument, 0, "enable the embedded snmp server", uwsgi_opt_snmp, NULL, 0},
703703
{"snmp-community", required_argument, 0, "set the snmp community string", uwsgi_opt_snmp_community, NULL, 0},
@@ -805,7 +805,7 @@ static struct uwsgi_option uwsgi_base_options[] = {
805805
{"log-slow", required_argument, 0, "log requests slower than the specified number of milliseconds", uwsgi_opt_set_int, &uwsgi.logging_options.slow, 0},
806806
{"log-4xx", no_argument, 0, "log requests with a 4xx response", uwsgi_opt_true, &uwsgi.logging_options._4xx, 0},
807807
{"log-5xx", no_argument, 0, "log requests with a 5xx response", uwsgi_opt_true, &uwsgi.logging_options._5xx, 0},
808-
{"log-big", required_argument, 0, "log requestes bigger than the specified size", uwsgi_opt_set_64bit, &uwsgi.logging_options.big, 0},
808+
{"log-big", required_argument, 0, "log requests bigger than the specified size", uwsgi_opt_set_64bit, &uwsgi.logging_options.big, 0},
809809
{"log-sendfile", required_argument, 0, "log sendfile requests", uwsgi_opt_true, &uwsgi.logging_options.sendfile, 0},
810810
{"log-ioerror", required_argument, 0, "log requests with io errors", uwsgi_opt_true, &uwsgi.logging_options.ioerror, 0},
811811
{"log-micros", no_argument, 0, "report response time in microseconds instead of milliseconds", uwsgi_opt_true, &uwsgi.log_micros, 0},
@@ -1479,7 +1479,7 @@ void uwsgi_nuclear_blast() {
14791479
// brutally reload
14801480
void reap_them_all(int signum) {
14811481

1482-
// avoid reace condition in lazy mode
1482+
// avoid race condition in lazy mode
14831483
if (uwsgi_instance_is_reloading)
14841484
return;
14851485

@@ -3468,7 +3468,7 @@ int uwsgi_run() {
34683468
// eventually maps (or disable) sockets for the worker
34693469
uwsgi_map_sockets();
34703470

3471-
// eventually set cpu affinity poilicies (OS-dependent)
3471+
// eventually set cpu affinity policies (OS-dependent)
34723472
uwsgi_set_cpu_affinity();
34733473

34743474
if (uwsgi.worker_exec) {

core/yaml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void uwsgi_yaml_config(char *file, char *magic_table[]) {
263263
return;
264264
// get the right key
265265
val[0] = 0;
266-
// yeah overengeneering....
266+
// yeah overengineering....
267267
yaml_rstrip(key);
268268

269269
val = yaml_lstrip(val + 2);

core/zeus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
*/
6969

7070
/*
71-
check how many nodes the instace needs (default 1)
71+
check how many nodes the instance needs (default 1)
7272
*/
7373

7474
int uwsgi_zeus_spawn_instance(struct uwsgi_instance *ui) {

examples/info_uwsgi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
uWSGI version <b><?=uwsgi_version()?></b><br/>
2-
workerd id: <b><?=uwsgi_worker_id()?></b><br/>
2+
worker id: <b><?=uwsgi_worker_id()?></b><br/>
33
master pid: <b><?=uwsgi_masterpid()?></b><br/>
44

55
uri: <b><?= $_SERVER['REQUEST_URI'] ?></b><br/>

plugins/dumbloop/dumb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void *dumb_loop_run(void *arg1) {
3030
uwsgi_setup_thread_req(core_id, wsgi_req);
3131
}
3232

33-
// this strign will be passed to the code_string function
33+
// this string will be passed to the code_string function
3434
char *str_core = uwsgi_num2str(core_id);
3535
// ok we are ready, let's run custom code
3636
while (uwsgi.workers[uwsgi.mywid].manage_next_request) {

plugins/emperor_amqp/amqp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static int amqp_wait_connection_tune(int fd) {
432432
ptr = amqp_get_long(ptr, watermark, &lv); if (!ptr) { free(frame); return -1; }
433433
uwsgi_log("AMQP max frame size: %d\n", lv);
434434
ptr = amqp_get_short(ptr, watermark, &sv); if (!ptr) { free(frame); return -1; }
435-
uwsgi_log("AMQP heartbeath: %d\n", sv);
435+
uwsgi_log("AMQP heartbeat: %d\n", sv);
436436

437437
free(frame);
438438
return 0;

plugins/emperor_mongodb/emperor_mongodb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extern "C" void uwsgi_imperial_monitor_mongodb(struct uwsgi_emperor_scanner *ues
6767
mongo::BSONObj p = cursor->next();
6868

6969
// checking for an empty string is not required, but we reduce the load
70-
// in case of badly strctured databases
70+
// in case of badly structured databases
7171
const char *name = p.getStringField("name");
7272
if (strlen(name) == 0) continue;
7373

plugins/fastrouter/fastrouter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static ssize_t fr_instance_connected(struct corerouter_peer *peer) {
285285
}
286286

287287

288-
// called after receaving the uwsgi header (read vars)
288+
// called after receiving the uwsgi header (read vars)
289289
static ssize_t fr_recv_uwsgi_vars(struct corerouter_peer *main_peer) {
290290
struct fastrouter_session *fr = (struct fastrouter_session *) main_peer->session;
291291

plugins/forkptyrouter/forkptyrouter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static struct uwsgi_option forkptyrouter_options[] = {
7676

7777
{"forkptyrouter-fallback", required_argument, 0, "fallback to the specified node in case of error", uwsgi_opt_add_string_list, &ufpty.cr.fallback, 0},
7878

79-
{"forkptyrouter-events", required_argument, 0, "set the maximum number of concufptyent events", uwsgi_opt_set_int, &ufpty.cr.nevents, 0},
79+
{"forkptyrouter-events", required_argument, 0, "set the maximum number of forkptyrouter events", uwsgi_opt_set_int, &ufpty.cr.nevents, 0},
8080
{"forkptyrouter-cheap", no_argument, 0, "run the forkptyrouter in cheap mode", uwsgi_opt_true, &ufpty.cr.cheap, 0},
8181

8282
{"forkptyrouter-timeout", required_argument, 0, "set forkptyrouter timeout", uwsgi_opt_set_int, &ufpty.cr.socket_timeout, 0},

plugins/gevent/gevent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PyObject *py_uwsgi_gevent_ctrl_gl(PyObject *self, PyObject *args) {
3636
PyObject *gswitch = PyEval_CallObject(ugevent.greenlet_switch, gevent_sleep_args);
3737
// could be NULL on exception
3838
if (!gswitch) {
39-
// just for being paranid
39+
// just for being paranoid
4040
if (PyErr_Occurred()) {
4141
PyErr_Clear();
4242
break;

plugins/lua/lua_plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,7 +3218,7 @@ static int uwsgi_lua_request(struct wsgi_request *wsgi_req) {
32183218
switch(lua_type(L, -2)) {
32193219
case LUA_TFUNCTION:
32203220
// initing coroutine:
3221-
// pushing first argument of coroutine and call it fisrt time:
3221+
// pushing first argument of coroutine and call it first time:
32223222

32233223
lua_pushvalue(L, -2);
32243224
lua_pushvalue(L, -2);
@@ -3687,7 +3687,7 @@ static int uwsgi_lua_mule(char *file) {
36873687
if (lua_pcall(L, ULUA_TYPE_ISUTABLE(type), 1, 0)) {
36883688
ulua_log("mule%d: error running loop function: %s", uwsgi.muleid, lua_tostring(L, -1));
36893689

3690-
// loop exeption
3690+
// loop exception
36913691
return 1; // respawn pls
36923692
}
36933693
}

plugins/mongrel2/mongrel2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int uwsgi_mongrel2_tnetstring_parse(struct wsgi_request *wsgi_req, char *
265265
wsgi_req->len += proto_base_add_uwsgi_var(wsgi_req, "QUERY_STRING", 12, "", 0);
266266
}
267267

268-
// reject uncomplete upload
268+
// reject incomplete upload
269269
if (async_upload == 1) {
270270
return -1;
271271
}

plugins/mono/mono_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static int uwsgi_mono_create_app(char *key, uint16_t key_len, char *physicalDir,
467467
struct uwsgi_app *app = uwsgi_add_app(id, mono_plugin.modifier1, key, key_len, uwsgi_concat2n(physicalDir, physicalDir_len, "", 0), appHost);
468468
app->started_at = now;
469469
app->startup_time = uwsgi_now() - now;
470-
// get a handlet to appHost
470+
// get a handler to appHost
471471
mono_gchandle_new(app->callable, 1);
472472
uwsgi_log("Mono asp.net app %d (%.*s) loaded in %d seconds at %p (worker %d)\n", id, key_len, key, (int) app->startup_time, appHost, uwsgi.mywid);
473473

plugins/rack/rack_plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ int uwsgi_rack_request(struct wsgi_request *wsgi_req) {
994994
#ifdef UWSGI_DEBUG
995995
uwsgi_log("calling ruby GC\n");
996996
#endif
997-
// try to limit damanges if threads are enabled...
997+
// try to limit damages if threads are enabled...
998998
if (wsgi_req->async_id == 0) {
999999
rb_gc();
10001000
}
@@ -1286,7 +1286,7 @@ void uwsgi_rack_postinit_apps(void) {
12861286
}
12871287

12881288
/*
1289-
If the ruby VM has rb_reserved_fd_p, we avoid closign the filedescriptor needed by
1289+
If the ruby VM has rb_reserved_fd_p, we avoid closing the file descriptor needed by
12901290
modern ruby (the Matz ones) releases.
12911291
*/
12921292
static void uwsgi_ruby_cleanup() {

plugins/rbthreads/rbthreads.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
the "rbthreads" loop engine must create pthreads with rb_thread_create()
1414
1515
The second reason is for how the GVL is managed. We do not have
16-
functions (like in CPython) to explicitely release and acquire it.
16+
functions (like in CPython) to explicitly release and acquire it.
1717
All happens via a function (rb_thread_call_without_gvl) calling the specified hook
1818
whenever the code blocks.
1919
@@ -57,7 +57,7 @@ struct uwsgi_rbthread {
5757
int ret;
5858
// fd to monitor
5959
int fd;
60-
// non-blockign timeout
60+
// non-blocking timeout
6161
int timeout;
6262
};
6363

plugins/router_static/router_static.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static int uwsgi_router_file(struct uwsgi_route *ur, char *args) {
302302
}
303303

304304
if (!urfc->filename) {
305-
uwsgi_log("you have to specifify a filename for the \"file\" router\n");
305+
uwsgi_log("you have to specify a filename for the \"file\" router\n");
306306
free(urfc);
307307
return -1;
308308
}

plugins/stats_pusher_socket/plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*
44
5-
this is a stats pusher plugin for sendign metrics over a udp socket
5+
this is a stats pusher plugin for sending metrics over a udp socket
66
77
--stats-push socket:address[,prefix]
88

plugins/transformation_gzip/gzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int uwsgi_routing_func_gzip(struct wsgi_request *wsgi_req, struct uwsgi_r
6262
}
6363
struct uwsgi_transformation *ut = uwsgi_add_transformation(wsgi_req, transform_gzip, utgz);
6464
ut->can_stream = 1;
65-
// this is the trasformation clearing the memory
65+
// this is the transformation clearing the memory
6666
ut = uwsgi_add_transformation(wsgi_req, transform_gzip, utgz);
6767
ut->is_final = 1;
6868
return UWSGI_ROUTE_NEXT;

plugins/webdav/webdav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ static void uwsgi_webdav_dirlist(struct wsgi_request *wsgi_req, char *dir) {
988988
struct dirent de;
989989
if (readdir_r(d, &de, &de_r)) goto end;
990990
if (de_r == NULL) break;
991-
// skip items startign with a dot
991+
// skip items starting with a dot
992992
if (de.d_name[0] == '.') continue;
993993
if (uwsgi_webdav_dirlist_add_item(ub, de.d_name, strlen(de.d_name), de.d_type == DT_DIR ? 1 : 0)) goto end;
994994
}

plugins/xslt/xslt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct uwsgi_option uwsgi_xslt_options[] = {
5252
{"xslt-ext", required_argument, 0, "search for xslt stylesheets with the specified extension", uwsgi_opt_add_string_list, &uxslt.ext, 0},
5353
{"xslt-var", required_argument, 0, "get the xslt stylesheet path from the specified request var", uwsgi_opt_add_string_list, &uxslt.var, 0},
5454
{"xslt-stylesheet", required_argument, 0, "if no xslt stylesheet file can be found, use the specified one", uwsgi_opt_add_string_list, &uxslt.stylesheet, 0},
55-
{"xslt-content-type", required_argument, 0, "set the content-type for the xslt rsult (default: text/html)", uwsgi_opt_set_str, &uxslt.content_type, 0},
55+
{"xslt-content-type", required_argument, 0, "set the content-type for the xslt result (default: text/html)", uwsgi_opt_set_str, &uxslt.content_type, 0},
5656
{NULL, 0, 0, NULL, NULL, NULL, 0},
5757
};
5858

plugins/zabbix/plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static void zabbix_template_print() {
211211
if (uwsgi_buffer_append(ub,"</zabbix_export>\n", 17)) goto error;
212212

213213
if (write(fd, ub->buf, ub->pos) != (ssize_t) ub->pos) {
214-
uwsgi_error("zabbix_template_print()/wrtie()");
214+
uwsgi_error("zabbix_template_print()/write()");
215215
exit(1);
216216
}
217217

0 commit comments

Comments
 (0)