This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug time/22735] New: Misleading typo in time.h source comment regarding CLOCKS_PER_SECOND


https://sourceware.org/bugzilla/show_bug.cgi?id=22735

            Bug ID: 22735
           Summary: Misleading typo in time.h source comment regarding
                    CLOCKS_PER_SECOND
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: smckean83 at gmail dot com
  Target Milestone: ---

Bug description:

The header time/time.h makes reference to a non-existent macro
CLOCKS_PER_SECOND in a comment section. The intended macro referenced is
probably CLOCKS_PER_SEC. 'CLOCKS_PER_SECOND' is referenced once in the full
v2.26 library.

Proposed patch:

diff --git a/time/time.h b/time/time.h
index f12a461..59f0e43 100644
--- a/time/time.h
+++ b/time/time.h
@@ -68,7 +68,7 @@ typedef __pid_t pid_t;
 __BEGIN_DECLS

 /* Time used by the program so far (user time + system time).
-   The result / CLOCKS_PER_SECOND is program time in seconds.  */
+   The result / CLOCKS_PER_SEC is program time in seconds.  */
 extern clock_t clock (void) __THROW;

 /* Return the current time and put it in *TIMER if TIMER is not NULL.  */

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]