diff --git a/src/sources/files.c b/src/sources/files.c index 33e49f9..ac8c2c3 100644 --- a/src/sources/files.c +++ b/src/sources/files.c @@ -139,7 +139,7 @@ error(cfg_t *cfg) { } void -errorcb(cfg_t *cfg, void (*cb)(char *errstr)) { +errcb(cfg_t *cfg, void (*cb)(char *errstr)) { assert(cfg != NULL); assert(cb != NULL); diff --git a/src/sources/source.h b/src/sources/source.h index f344757..79b464e 100644 --- a/src/sources/source.h +++ b/src/sources/source.h @@ -22,7 +22,7 @@ extern cfg_t *create(const char *init); extern bool config(cfg_t *c, const char *key, const char *value); extern bool ready(cfg_t *c); extern char *error(cfg_t *c); -extern void errorcb(cfg_t *c, void (*cb)(char *errstr)); +extern void errcb(cfg_t *c, void (*cb)(char *errstr)); extern bool start(cfg_t *c); extern bool next(cfg_t *c, char *buf, size_t bufsize, bool reset); extern bool stop(cfg_t *c);