opnsense-ports/audio/juke/files/patch-src_conf.c
Franco Fichtner 6e79da282a */*: sync with upstream
Taken from: FreeBSD
2016-07-27 07:58:02 +02:00

16 lines
549 B
C

--- src/conf.c.orig 2000-03-06 20:43:13 UTC
+++ src/conf.c
@@ -207,11 +207,11 @@ void config_load (struct CONFIG *cfg)
return;
}
}
- cfg->file_len = load_file ("/etc/juke.conf", (void **)&cfg->file);
+ cfg->file_len = load_file (CFG_RCFILE, (void **)&cfg->file);
if (cfg->file_len != ERROR) {
evaluate (cfg);
if (! cfg->formats) {
- fprintf (stderr, "error: No formats in /etc/juke.conf\n");
+ fprintf (stderr, "error: No formats in " CFG_RCFILE "\n");
exit (ERROR);
}
build_arg_lists (cfg);