Re: [PATCH 9/9] Use timer_settime for new platforms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jacob Keller <jacob.e.keller@xxxxxxxxx> writes:

> diff --git a/builtin/log.c b/builtin/log.c
> index 4389722b4b1e..a39e82d67eb3 100644
> --- a/builtin/log.c
> +++ b/builtin/log.c
> ...
> @@ -271,9 +271,12 @@ static void log_show_early(struct rev_info *revs, struct commit_list *list)
>  	 * trigger every second even if we're blocked on a
>  	 * reader!
>  	 */
> -	early_output_timer.it_value.tv_sec = 0;
> -	early_output_timer.it_value.tv_usec = 500000;
> -	setitimer(ITIMER_REAL, &early_output_timer, NULL);
> +	struct itimerspec value;
> +	value.it_value.tv_sec = 0;
> +	value.it_value.tv_nsec = 500000L * 1000L;
> +	value.it_interval.tv_sec = 0;
> +	value.it_interval.tv_nsec = 0;
> +	timer_settime(early_output_timer, 0, &value, NULL);

Do I see decl-after-stmt up there?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]