Switch to unified view

a/src/main.cxx b/src/main.cxx
...
...
157
157
158
// Global
158
// Global
159
string g_configfilename;
159
string g_configfilename;
160
ConfSimple *g_config;
160
ConfSimple *g_config;
161
bool g_enableL16 = false;
161
bool g_enableL16 = false;
162
bool g_lumincompat = true;
162
163
163
static void onsig(int)
164
static void onsig(int)
164
{
165
{
165
    LOGDEB("Got sig" << endl);
166
    LOGDEB("Got sig" << endl);
166
    dev->shouldExit();
167
    dev->shouldExit();
...
...
411
412
412
        g_config->get("scsenderpath", senderpath);
413
        g_config->get("scsenderpath", senderpath);
413
        if (g_config->get("scsendermpdport", value))
414
        if (g_config->get("scsendermpdport", value))
414
            sendermpdport = atoi(value.c_str());
415
            sendermpdport = atoi(value.c_str());
415
416
417
        g_lumincompat = configBool(g_config, "lumincompat", true);
416
    } else {
418
    } else {
417
        // g_configfilename is empty. Create an empty config anyway
419
        // g_configfilename is empty. Create an empty config anyway
418
        g_config = new ConfSimple(string(), 1, true);
420
        g_config = new ConfSimple(string(), 1, true);
419
        if (!g_config || !g_config->ok()) {
421
        if (!g_config || !g_config->ok()) {
420
            cerr << "Could not create empty config\n";
422
            cerr << "Could not create empty config\n";