|
|
|
@ -21,7 +21,7 @@
|
|
|
|
|
struct _config { |
|
|
|
|
char name[32]; |
|
|
|
|
char error[256]; |
|
|
|
|
void (*errcb)(char *errstr); |
|
|
|
|
void (*errcb)(const char *errstr); |
|
|
|
|
char baddr[INET6_ADDRSTRLEN]; /**< bind address */ |
|
|
|
|
char maddr[INET_ADDRSTRLEN]; /**< multicast address */ |
|
|
|
|
char mport[6]; /**< multicast port */ |
|
|
|
@ -30,7 +30,7 @@ struct _config {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
errcb_stub(char *str) { |
|
|
|
|
errcb_stub(const char *str) { |
|
|
|
|
assert(str != NULL); |
|
|
|
|
(void)(str); |
|
|
|
|
} |
|
|
|
@ -97,7 +97,7 @@ error(cfg_t *cfg) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
errcb(cfg_t *cfg, void (*cb)(char *errstr)) { |
|
|
|
|
errcb(cfg_t *cfg, void (*cb)(const char *errstr)) { |
|
|
|
|
assert(cfg != NULL); |
|
|
|
|
assert(cb != NULL); |
|
|
|
|
|
|
|
|
|