[Git][NTPsec/ntpsec][master] tstamp_t: only used in one file, move from extern to static.

Gary E. Miller gitlab at mg.gitlab.com
Fri Mar 10 04:21:39 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
3123b684 by Gary E. Miller at 2017-03-09T20:16:36-08:00
tstamp_t: only used in one file, move from extern to static.

Maybe next I can eliminate it later.

- - - - -


2 changed files:

- include/ntp_types.h
- ntpd/ntp_control.c


Changes:

=====================================
include/ntp_types.h
=====================================
--- a/include/ntp_types.h
+++ b/include/ntp_types.h
@@ -61,7 +61,6 @@ typedef uint16_t	associd_t; /* association ID */
 #define ASSOCID_MAX	USHRT_MAX
 typedef uint32_t keyid_t;	/* cryptographic key ID */
 #define KEYID_T_MAX	(0xffffffff)
-typedef uint32_t tstamp_t;	/* NTP seconds timestamp */
 
 /*
  * Cloning malloc()'s behavior of always returning pointers suitably


=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -68,6 +68,7 @@ static	void	ctl_putrefid	(const char *, uint32_t);
 static	void	ctl_putarray	(const char *, double *, int);
 static	void	ctl_putsys	(int);
 static	void	ctl_putpeer	(int, struct peer *);
+typedef uint32_t tstamp_t;	/* NTP seconds timestamp */
 static	void	ctl_putfs	(const char *, tstamp_t);
 #ifdef REFCLOCK
 static	void	ctl_putclock	(int, struct refclockstat *, int);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3123b684b584f35021747489799710e623910130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170310/511b5017/attachment.html>


More information about the vc mailing list