Skip to content

Commit 9fbba8a

Browse files
omit struct keyword; optional in C++
1 parent 576e644 commit 9fbba8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libc/src/poll/linux/poll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
namespace LIBC_NAMESPACE_DECL {
2222

23-
LLVM_LIBC_FUNCTION(int, poll, (struct pollfd * fds, nfds_t nfds, int timeout)) {
23+
LLVM_LIBC_FUNCTION(int, poll, (pollfd * fds, nfds_t nfds, int timeout)) {
2424

2525
#ifdef SYS_poll
2626
int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_poll, fds, nfds, timeout);
2727
#elif defined(SYS_ppoll)
28-
struct timespec ts, *tsp;
28+
timespec ts, *tsp;
2929
if (timeout >= 0) {
3030
ts.tv_sec = timeout / 1000;
3131
ts.tv_nsec = (timeout % 1000) * 1000000;

libc/src/poll/poll.h

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-
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
18+
int poll(pollfd *fds, nfds_t nfds, int timeout);
1919

2020
} // namespace LIBC_NAMESPACE_DECL
2121

0 commit comments

Comments
 (0)