X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/41306318777a942420bc4feadbfacf662ea179dc..d20f82e6f1ab902469723ebd530ca21bea9cc41b:/src/profiler.c diff --git a/src/profiler.c b/src/profiler.c index 64eb5cafc2..3d2c001507 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -1,6 +1,6 @@ /* Profiler implementation. -Copyright (C) 2012-2013 Free Software Foundation, Inc. +Copyright (C) 2012-2015 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -294,7 +294,7 @@ setup_cpu_timer (Lisp_Object sampling_interval) sigev.sigev_signo = SIGPROF; sigev.sigev_notify = SIGEV_SIGNAL; - for (i = 0; i < sizeof system_clock / sizeof *system_clock; i++) + for (i = 0; i < ARRAYELTS (system_clock); i++) if (timer_create (system_clock[i], &sigev, &profiler_timer) == 0) { profiler_timer_ok = 1; @@ -384,7 +384,7 @@ Return non-nil if the profiler was running. */) DEFUN ("profiler-cpu-running-p", Fprofiler_cpu_running_p, Sprofiler_cpu_running_p, 0, 0, 0, - doc: /* Return non-nil iff cpu profiler is running. */) + doc: /* Return non-nil if cpu profiler is running. */) (void) { return profiler_cpu_running ? Qt : Qnil;