[Git][NTPsec/ntpsec][master] Remove unused arg from set_timer_or_die()

Hal Murray gitlab at mg.gitlab.com
Sun Mar 1 06:05:31 UTC 2020



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
0ed0d595 by Hal Murray at 2020-02-29T22:03:47-08:00
Remove unused arg from set_timer_or_die()

- - - - -


1 changed file:

- ntpd/ntp_timer.c


Changes:

=====================================
ntpd/ntp_timer.c
=====================================
@@ -74,19 +74,14 @@ typedef struct itimerval intervaltimer;
 #endif
 static intervaltimer itimer;
 
-void	set_timer_or_die(const intervaltimer *);
-
+void	set_timer_or_die(void);
 
 void
-set_timer_or_die(
-	const intervaltimer *	ptimer
-	)
+set_timer_or_die(void)
 {
 	const char *	setfunc;
 	int		rc;
 
-	UNUSED_ARG(ptimer);
-
 #ifdef HAVE_TIMER_CREATE
 	setfunc = "timer_settime";
 	rc = timer_settime(timer_id, 0, &itimer, NULL);
@@ -124,7 +119,7 @@ reinit_timer(void)
 		itimer.it_value.tv_sec = (1 << EVENT_TIMEOUT);
 	itimer.it_interval.tv_sec = (1 << EVENT_TIMEOUT);
 	itimer.it_interval.itv_frac = 0;
-	set_timer_or_die(&itimer);
+	set_timer_or_die();
 }
 
 
@@ -163,7 +158,7 @@ init_timer(void)
 	itimer.it_interval.tv_sec =
 		itimer.it_value.tv_sec = (1 << EVENT_TIMEOUT);
 	itimer.it_interval.itv_frac = itimer.it_value.itv_frac = 0;
-	set_timer_or_die(&itimer);
+	set_timer_or_die();
 }
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0ed0d595cbc1648a94b23d02a24fff5cc22df632

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0ed0d595cbc1648a94b23d02a24fff5cc22df632
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200301/16876050/attachment-0001.htm>


More information about the vc mailing list