Skip to content

Commit 366ad9a

Browse files
committed
- Removed redundant 'struct' keyword
1 parent 7105bef commit 366ad9a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

libc/src/time/linux/clock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace LIBC_NAMESPACE_DECL {
1919

2020
LLVM_LIBC_FUNCTION(clock_t, clock, ()) {
2121
using namespace time_units;
22-
struct timespec ts;
22+
timespec ts;
2323
auto result = internal::clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
2424
if (!result.has_value()) {
2525
libc_errno = result.error();

libc/src/time/linux/clock_gettime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
1616

1717
// TODO(michaelrj): Move this into time/linux with the other syscalls.
1818
LLVM_LIBC_FUNCTION(int, clock_gettime,
19-
(clockid_t clockid, struct timespec *ts)) {
19+
(clockid_t clockid, timespec *ts)) {
2020
auto result = internal::clock_gettime(clockid, ts);
2121

2222
// A negative return value indicates an error with the magnitude of the

libc/src/time/linux/clock_settime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace LIBC_NAMESPACE_DECL {
1616

1717
LLVM_LIBC_FUNCTION(int, clock_settime,
18-
(clockid_t clockid, const struct timespec *ts)) {
18+
(clockid_t clockid, const timespec *ts)) {
1919
auto result = internal::clock_settime(clockid, ts);
2020

2121
// A negative return value indicates an error with the magnitude of the

libc/src/time/linux/nanosleep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace LIBC_NAMESPACE_DECL {
2020

2121
LLVM_LIBC_FUNCTION(int, nanosleep,
22-
(const struct timespec *req, struct timespec *rem)) {
22+
(const timespec *req, timespec *rem)) {
2323
#if SYS_nanosleep
2424
int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_nanosleep, req, rem);
2525
#elif defined(SYS_clock_nanosleep_time64)

libc/src/time/linux/timespec_get.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace LIBC_NAMESPACE_DECL {
1717

18-
LLVM_LIBC_FUNCTION(int, timespec_get, (struct timespec * ts, int base)) {
18+
LLVM_LIBC_FUNCTION(int, timespec_get, (timespec *ts, int base)) {
1919
clockid_t clockid;
2020
switch (base) {
2121
case TIME_UTC:

0 commit comments

Comments
 (0)