Always set the clock class to 255 when slave only mode is configured.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-28 18:47:45 +02:00
parent 852d587fd3
commit 81648e81ed
1 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,6 @@ int main(int argc, char *argv[])
break;
case 's':
ds->slaveOnly = TRUE;
ds->clockQuality.clockClass = 255;
*cfg_ignore |= CFG_IGNORE_SLAVEONLY;
break;
case 'l':
@ -226,6 +225,9 @@ int main(int argc, char *argv[])
fprintf(stderr, "failed to read configuration file\n");
return -1;
}
if (ds->slaveOnly) {
ds->clockQuality.clockClass = 255;
}
print_set_verbose(cfg_settings.verbose);
print_set_syslog(cfg_settings.use_syslog);