This commit is contained in:
Wolfgang Hottgenroth 2021-02-09 18:37:11 +01:00
parent aaf122650a
commit b8e9afd561
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <sinkStruct.h>
#include <logging.h>
@ -18,7 +19,7 @@ const t_device devices[] = {
config_t cfg;
void readConfig() {
int readConfig() {
config_init(&cfg);
if (! config_read_file(&cfg, "/etc/sink20169.cfg")) {
logmsg(LOG_ERR, "failed to read config file: %s:%d - %s\n",
@ -36,4 +37,6 @@ int main() {
if (res < 0) {
logmsg(LOG_ERR, "receiver failed to start, error: ", res);
}
config_destroy(&cfg);
}