* Fix typo in intrinsics/time_1.h
@ 2012-06-01 17:08 rbmj
2012-06-04 19:14 ` Janne Blomqvist
0 siblings, 1 reply; 2+ messages in thread
From: rbmj @ 2012-06-01 17:08 UTC (permalink / raw)
To: gcc-patches, fortran
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
Hi all,
In libgfortran/intrinsics/time_1.h:181, there is a typo that refers to
user_usecs (should be user_usec). This patch fixes it. I don't have
commit access, so someone please apply this for me. It should be obvious.
Robert Mason
[-- Attachment #2: time_1_typo.patch --]
[-- Type: text/x-patch, Size: 516 bytes --]
diff --git a/libgfortran/intrinsics/time_1.h b/libgfortran/intrinsics/time_1.h
index 98a20d2..920b175 100644
--- a/libgfortran/intrinsics/time_1.h
+++ b/libgfortran/intrinsics/time_1.h
@@ -178,7 +178,7 @@ gf_cputime (long *user_sec, long *user_usec, long *system_sec, long *system_usec
struct timespec ts;
int err = clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &ts);
*user_sec = ts.tv_sec;
- *user_usecs = ts.tv_nsec / 1000;
+ *user_usec = ts.tv_nsec / 1000;
*system_sec = *system_usec = 0;
return err;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix typo in intrinsics/time_1.h
2012-06-01 17:08 Fix typo in intrinsics/time_1.h rbmj
@ 2012-06-04 19:14 ` Janne Blomqvist
0 siblings, 0 replies; 2+ messages in thread
From: Janne Blomqvist @ 2012-06-04 19:14 UTC (permalink / raw)
To: rbmj; +Cc: gcc-patches, fortran
On Fri, Jun 1, 2012 at 8:08 PM, rbmj <rbmj@verizon.net> wrote:
> Hi all,
>
> In libgfortran/intrinsics/time_1.h:181, there is a typo that refers to
> user_usecs (should be user_usec). This patch fixes it. I don't have commit
> access, so someone please apply this for me. It should be obvious.
Thanks for catching this. Patch committed.
--
Janne Blomqvist
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-04 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-01 17:08 Fix typo in intrinsics/time_1.h rbmj
2012-06-04 19:14 ` Janne Blomqvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).