This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/22735] New: Misleading typo in time.h source comment regarding CLOCKS_PER_SECOND
- From: "smckean83 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 20 Jan 2018 00:00:47 +0000
- Subject: [Bug time/22735] New: Misleading typo in time.h source comment regarding CLOCKS_PER_SECOND
- Auto-submitted: auto-generated
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.