mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:25:07 -05:00
conf: return port numbers as int
This commit is contained in:
4
conf.c
4
conf.c
@@ -1212,7 +1212,7 @@ CNF_AddBroadcasts(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
unsigned short
|
int
|
||||||
CNF_GetNTPPort(void)
|
CNF_GetNTPPort(void)
|
||||||
{
|
{
|
||||||
return ntp_port;
|
return ntp_port;
|
||||||
@@ -1220,7 +1220,7 @@ CNF_GetNTPPort(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
unsigned short
|
int
|
||||||
CNF_GetAcquisitionPort(void)
|
CNF_GetAcquisitionPort(void)
|
||||||
{
|
{
|
||||||
return acquisition_port;
|
return acquisition_port;
|
||||||
|
|||||||
4
conf.h
4
conf.h
@@ -42,8 +42,8 @@ extern void CNF_AddSources(void);
|
|||||||
extern void CNF_AddBroadcasts(void);
|
extern void CNF_AddBroadcasts(void);
|
||||||
extern void CNF_AddRefclocks(void);
|
extern void CNF_AddRefclocks(void);
|
||||||
|
|
||||||
extern unsigned short CNF_GetAcquisitionPort(void);
|
extern int CNF_GetAcquisitionPort(void);
|
||||||
extern unsigned short CNF_GetNTPPort(void);
|
extern int CNF_GetNTPPort(void);
|
||||||
extern char *CNF_GetDriftFile(void);
|
extern char *CNF_GetDriftFile(void);
|
||||||
extern char *CNF_GetLogDir(void);
|
extern char *CNF_GetLogDir(void);
|
||||||
extern char *CNF_GetDumpDir(void);
|
extern char *CNF_GetDumpDir(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user