From fa0fde9b529d7ac00a0020b400ab87c7017188f7 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 13 Sep 2016 21:38:03 +1000 Subject: [PATCH] * src/sources/source.h : tune api --- src/sources/files.c | 2 +- src/sources/source.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);