Skip to content

Commit 097b150

Browse files
committed
spelling: mechanism [API]
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
1 parent 0ba9def commit 097b150

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ static void fpm_conf_dump() /* {{{ */
16871687
zlog(ZLOG_NOTICE, "\tdaemonize = %s", BOOL2STR(fpm_global_config.daemonize));
16881688
zlog(ZLOG_NOTICE, "\trlimit_files = %d", fpm_global_config.rlimit_files);
16891689
zlog(ZLOG_NOTICE, "\trlimit_core = %d", fpm_global_config.rlimit_core);
1690-
zlog(ZLOG_NOTICE, "\tevents.mechanism = %s", fpm_event_machanism_name());
1690+
zlog(ZLOG_NOTICE, "\tevents.mechanism = %s", fpm_event_mechanism_name());
16911691
#ifdef HAVE_SYSTEMD
16921692
zlog(ZLOG_NOTICE, "\tsystemd_interval = %ds", fpm_global_config.systemd_interval/1000);
16931693
#endif

sapi/fpm/fpm/fpm_events.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,66 +245,66 @@ static void fpm_event_queue_destroy(struct fpm_event_queue_s **queue) /* {{{ */
245245
}
246246
/* }}} */
247247

248-
int fpm_event_pre_init(char *machanism) /* {{{ */
248+
int fpm_event_pre_init(char *mechanism) /* {{{ */
249249
{
250250
/* kqueue */
251251
module = fpm_event_kqueue_module();
252252
if (module) {
253-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
253+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
254254
return 0;
255255
}
256256
}
257257

258258
/* port */
259259
module = fpm_event_port_module();
260260
if (module) {
261-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
261+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
262262
return 0;
263263
}
264264
}
265265

266266
/* epoll */
267267
module = fpm_event_epoll_module();
268268
if (module) {
269-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
269+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
270270
return 0;
271271
}
272272
}
273273

274274
/* /dev/poll */
275275
module = fpm_event_devpoll_module();
276276
if (module) {
277-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
277+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
278278
return 0;
279279
}
280280
}
281281

282282
/* poll */
283283
module = fpm_event_poll_module();
284284
if (module) {
285-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
285+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
286286
return 0;
287287
}
288288
}
289289

290290
/* select */
291291
module = fpm_event_select_module();
292292
if (module) {
293-
if (!machanism || strcasecmp(module->name, machanism) == 0) {
293+
if (!mechanism || strcasecmp(module->name, mechanism) == 0) {
294294
return 0;
295295
}
296296
}
297297

298-
if (machanism) {
299-
zlog(ZLOG_ERROR, "event mechanism '%s' is not available on this system", machanism);
298+
if (mechanism) {
299+
zlog(ZLOG_ERROR, "event mechanism '%s' is not available on this system", mechanism);
300300
} else {
301301
zlog(ZLOG_ERROR, "unable to find a suitable event mechanism on this system");
302302
}
303303
return -1;
304304
}
305305
/* }}} */
306306

307-
const char *fpm_event_machanism_name() /* {{{ */
307+
const char *fpm_event_mechanism_name() /* {{{ */
308308
{
309309
return module ? module->name : NULL;
310310
}

sapi/fpm/fpm/fpm_events.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ int fpm_event_init_main();
4343
int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg);
4444
int fpm_event_add(struct fpm_event_s *ev, unsigned long int timeout);
4545
int fpm_event_del(struct fpm_event_s *ev);
46-
int fpm_event_pre_init(char *machanism);
47-
const char *fpm_event_machanism_name();
46+
int fpm_event_pre_init(char *mechanism);
47+
const char *fpm_event_mechanism_name();
4848
int fpm_event_support_edge_trigger();
4949

5050
#endif

0 commit comments

Comments
 (0)