]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
fix typo
authorWataru Ashihara <wsh@iij.ad.jp>
Wed, 4 Sep 2019 02:52:56 +0000 (11:52 +0900)
committerVincent Bernat <vincent@bernat.ch>
Wed, 4 Sep 2019 08:32:24 +0000 (10:32 +0200)
src/client/text_writer.c
src/daemon/event.c
src/lib/atom.h
src/lib/lldpctl.h

index 7552c63f4c61ad830db6da2ff5fd791f0675cef6..02e97a47dbd49711d7623677da093a40b61a241e 100644 (file)
@@ -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;
        }
index 0963c1ef35b3693bbff121830ddb2b0b1c59b527..c42bc3fab9edc21fd8a9e2ec35d7d6a9626ad05e 100644 (file)
@@ -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;
index aa6ed65dd2f732f3cac430d0f18fdd1aeed94120..615b315a9d7c769f19b95678b89a3dd31f72899e 100644 (file)
@@ -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)
 
index c10a83dc6f70289a7f7a294577356438440429da..5222cb006d1f57db0a0d971df7e24baa41860155 100644 (file)
@@ -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.
  *