cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1862?usp=email )
The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: interval: Remove unused usec_timer functions ...................................................................... interval: Remove unused usec_timer functions These have never been used in the git history. Probably OpenVPN 1.x remnants. Identified by cppcheck. Change-Id: Icfb109714b42cab0af34f21f8fc8972059091c8e Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1862 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg38643.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpn/interval.h 1 file changed, 0 insertions(+), 43 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/1862/2 diff --git a/src/openvpn/interval.h b/src/openvpn/interval.h index f6d3503..59051bd 100644 --- a/src/openvpn/interval.h +++ b/src/openvpn/interval.h @@ -255,47 +255,4 @@ */ bool event_timeout_trigger(struct event_timeout *et, struct timeval *tv, int et_const_retry); -/* - * Measure time intervals in microseconds - */ - -#define USEC_TIMER_MAX 60 /* maximum interval size in seconds */ - -#define USEC_TIMER_MAX_USEC (USEC_TIMER_MAX * 1000000) - -struct usec_timer -{ - struct timeval start; - struct timeval end; -}; - -#ifdef HAVE_GETTIMEOFDAY - -static inline void -usec_timer_start(struct usec_timer *obj) -{ - CLEAR(*obj); - openvpn_gettimeofday(&obj->start, NULL); -} - -static inline void -usec_timer_end(struct usec_timer *obj) -{ - openvpn_gettimeofday(&obj->end, NULL); -} - -#endif /* HAVE_GETTIMEOFDAY */ - -static inline bool -usec_timer_interval_defined(struct usec_timer *obj) -{ - return obj->start.tv_sec && obj->end.tv_sec; -} - -static inline int -usec_timer_interval(struct usec_timer *obj) -{ - return tv_subtract(&obj->end, &obj->start, USEC_TIMER_MAX); -} - #endif /* INTERVAL_H */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1862?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Icfb109714b42cab0af34f21f8fc8972059091c8e Gerrit-Change-Number: 1862 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld <[email protected]> Gerrit-Reviewer: cron2 <[email protected]> Gerrit-Reviewer: plaisthos <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
