From 07ecfcd1972eb22dd8f1a440b2952a7f74bb3765 Mon Sep 17 00:00:00 2001 From: Wataru Ashihara Date: Wed, 4 Sep 2019 11:52:56 +0900 Subject: [PATCH] fix typo --- src/client/text_writer.c | 2 +- src/daemon/event.c | 2 +- src/lib/atom.h | 2 +- src/lib/lldpctl.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/text_writer.c b/src/client/text_writer.c index 7552c63f..02e97a47 100644 --- a/src/client/text_writer.c +++ b/src/client/text_writer.c @@ -138,7 +138,7 @@ txt_init(FILE* fh) { result = malloc(sizeof(struct writer)); if (!result) { - fatalx("llpctl", "out of memory"); + fatalx("lldpctl", "out of memory"); free(priv); return NULL; } diff --git a/src/daemon/event.c b/src/daemon/event.c index 0963c1ef..c42bc3fa 100644 --- a/src/daemon/event.c +++ b/src/daemon/event.c @@ -822,7 +822,7 @@ levent_schedule_cleanup(struct lldpd *cfg) (long)tv.tv_sec); if (event_add(cfg->g_cleanup_timer, &tv) == -1) { log_warnx("event", - "unable to schedula cleanup task"); + "unable to schedule cleanup task"); event_free(cfg->g_cleanup_timer); cfg->g_cleanup_timer = NULL; return; diff --git a/src/lib/atom.h b/src/lib/atom.h index aa6ed65d..615b315a 100644 --- a/src/lib/atom.h +++ b/src/lib/atom.h @@ -81,7 +81,7 @@ int _lldpctl_do_something(lldpctl_conn_t *conn, void *to_send, struct marshal_info *mi_send, void **to_recv, struct marshal_info *mi_recv); -/* error.c */ +/* errors.c */ #define SET_ERROR(conn, x) ((conn)->error = x) #define RESET_ERROR(conn) SET_ERROR((conn), LLDPCTL_NO_ERROR) diff --git a/src/lib/lldpctl.h b/src/lib/lldpctl.h index c10a83dc..5222cb00 100644 --- a/src/lib/lldpctl.h +++ b/src/lib/lldpctl.h @@ -231,7 +231,7 @@ int lldpctl_release(lldpctl_conn_t *conn); * translate this error code. * * When a function returns an integer, it may return a negative value. It - * usually means this is an error but some functions may return a legetimate + * usually means this is an error but some functions may return a legitimate * negative value (for example @ref lldpctl_atom_get_int()). When there is a * doubt, @ref lldpctl_last_error() should be checked. * -- 2.39.5