Skip to content

Commit d486708

Browse files
reformat
1 parent 19e518a commit d486708

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libc/include/llvm-libc-macros/linux/signal-macros.h

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

8989
#define SIG_DFL ((void (*)(int))0)
9090
#define SIG_IGN ((void (*)(int))1)
91-
#define SIG_ERR ((void (*)(int))-1)
91+
#define SIG_ERR ((void (*)(int))(-1))
9292

9393
// SIGCHLD si_codes
9494
#define CLD_EXITED 1 // child has exited

libc/src/signal/linux/signal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ namespace LIBC_NAMESPACE_DECL {
1717
// Our LLVM_LIBC_FUNCTION macro doesn't handle function pointer return types.
1818
using signal_handler = void (*)(int);
1919

20-
LLVM_LIBC_FUNCTION(signal_handler, signal, (int signum, signal_handler handler)) {
20+
LLVM_LIBC_FUNCTION(signal_handler, signal,
21+
(int signum, signal_handler handler)) {
2122
struct sigaction action, old;
2223
action.sa_handler = handler;
2324
action.sa_flags = SA_RESTART;

0 commit comments

Comments
 (0)