result = malloc(sizeof(struct writer));
if (!result) {
- fatalx("llpctl", "out of memory");
+ fatalx("lldpctl", "out of memory");
free(priv);
return NULL;
}
(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;
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)
* 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.
*