Switch to unified view

a/src/ohproduct.cxx b/src/ohproduct.cxx
...
...
408
static void listScripts(vector<pair<string, string> >& sources)
408
static void listScripts(vector<pair<string, string> >& sources)
409
{
409
{
410
    if (!g_config)
410
    if (!g_config)
411
        return;
411
        return;
412
412
413
    {
414
        std::unique_lock<std::mutex>(g_configlock);
415
        g_config->get("ohsrc_scripts_dir", scripts_dir);
413
    g_config->get("ohsrc_scripts_dir", scripts_dir);
416
    }
417
414
418
    DIR *dirp = opendir(scripts_dir.c_str());
415
    DIR *dirp = opendir(scripts_dir.c_str());
419
    if (dirp == 0) {
416
    if (dirp == 0) {
420
        LOGERR("Error opening scripts dir " << scripts_dir << " errno " <<
417
        LOGERR("Error opening scripts dir " << scripts_dir << " errno " <<
421
               errno << endl);
418
               errno << endl);