diff mbox series

[uclibc-ng-devel,v2] riscv32: Fix `struct ucontext` definition.

Message ID 20240518142133.201711-1-dm.chestnykh@gmail.com
State Accepted
Headers show
Series [uclibc-ng-devel,v2] riscv32: Fix `struct ucontext` definition. | expand

Commit Message

Dmitry Chestnykh May 18, 2024, 2:21 p.m. UTC
The correct typedef is `struct ucontext` -> `ucontext_t`,
not `struct ucontext_t` -> `ucontext_t` like for other architectures.

Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
---
 libc/sysdeps/linux/riscv32/sys/ucontext.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Waldemar Brodkorb May 19, 2024, 8:24 a.m. UTC | #1
Hi Dmitry,
Dmitry Chestnykh wrote,

> The correct typedef is `struct ucontext` -> `ucontext_t`,
> not `struct ucontext_t` -> `ucontext_t` like for other architectures.
> 
> Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>

Thanks, committed and pushed,
 best regards
  Waldemar
diff mbox series

Patch

diff --git a/libc/sysdeps/linux/riscv32/sys/ucontext.h b/libc/sysdeps/linux/riscv32/sys/ucontext.h
index 2893ff359..308ccb8c2 100644
--- a/libc/sysdeps/linux/riscv32/sys/ucontext.h
+++ b/libc/sysdeps/linux/riscv32/sys/ucontext.h
@@ -83,10 +83,10 @@  typedef struct mcontext_t
   } mcontext_t;
 
 /* Userlevel context.  */
-typedef struct ucontext_t
+typedef struct ucontext
   {
     unsigned long int  __uc_flags;
-    struct ucontext_t *uc_link;
+    struct ucontext   *uc_link;
     stack_t            uc_stack;
     sigset_t           uc_sigmask;
     /* There's some padding here to allow sigset_t to be expanded in the