Make naming of RTC config functions consistent

This commit is contained in:
Miroslav Lichvar 2013-12-10 16:39:14 +01:00
parent b4f6a0f94a
commit be14dbffef
5 changed files with 7 additions and 7 deletions

4
conf.c
View file

@ -1403,7 +1403,7 @@ CNF_AllowLocalReference(int *stratum)
/* ================================================== */
int
CNF_GetRTCOnUTC(void)
CNF_GetRtcOnUtc(void)
{
return rtc_on_utc;
}
@ -1411,7 +1411,7 @@ CNF_GetRTCOnUTC(void)
/* ================================================== */
int
CNF_GetRTCSync(void)
CNF_GetRtcSync(void)
{
return rtc_sync;
}

4
conf.h
View file

@ -60,8 +60,8 @@ extern int CNF_GetGenerateCommandKey(void);
extern int CNF_GetDumpOnExit(void);
extern int CNF_GetManualEnabled(void);
extern int CNF_GetCommandPort(void);
extern int CNF_GetRTCOnUTC(void);
extern int CNF_GetRTCSync(void);
extern int CNF_GetRtcOnUtc(void);
extern int CNF_GetRtcSync(void);
extern void CNF_GetMakeStep(int *limit, double *threshold);
extern void CNF_GetMaxChange(int *delay, int *ignore, double *offset);
extern void CNF_GetLogChange(int *enabled, double *threshold);

2
rtc.c
View file

@ -84,7 +84,7 @@ RTC_Initialise(void)
file_name = CNF_GetRtcFile();
if (file_name) {
if (CNF_GetRTCSync()) {
if (CNF_GetRtcSync()) {
LOG_FATAL(LOGF_Rtc, "rtcfile directive cannot be used with rtcsync");
}

View file

@ -374,7 +374,7 @@ t_from_rtc(struct tm *stm) {
static void
setup_config(void)
{
if (CNF_GetRTCOnUTC()) {
if (CNF_GetRtcOnUtc()) {
rtc_on_utc = 1;
} else {
rtc_on_utc = 0;

View file

@ -1115,7 +1115,7 @@ SYS_Linux_Initialise(void)
have_setoffset = 0;
}
TMX_SetSync(CNF_GetRTCSync());
TMX_SetSync(CNF_GetRtcSync());
/* Read current kernel frequency */
TMX_GetFrequency(&freq, &current_tick);