]> the.earth.li Git - onak.git/blobdiff - onak-conf.c
Deprecate the .conf configuration file format
[onak.git] / onak-conf.c
index 8925dbcb6a970d94ae5ab7a12a6865ff182d1c71..7b8a2e3d6b1eb32ddb0bd908c96fbda7244ab756 100644 (file)
@@ -391,6 +391,12 @@ void readconfig(const char *configfile) {
                conffile = fopen(configfile, "r");
        }
 
+       if (oldstyle) {
+               logthing(LOGTHING_CRITICAL, "Reading deprecated old-style "
+                               "configuration file. This will not be "
+                               "supported in the next release.");
+       }
+
        if (conffile != NULL) {
                if (!fgets(curline, 1023, conffile)) {
                        logthing(LOGTHING_CRITICAL,