mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 19:42:48 -05:00
Formatting: normalise to put a space after condition keywords.
'if (thing)' is the local style here, not 'if(thing)'. Similarly with 'for' and 'while'.
This commit is contained in:
@ -14,7 +14,7 @@ void block_signal(int sig, bool block_it)
|
||||
|
||||
sigemptyset(&ss);
|
||||
sigaddset(&ss, sig);
|
||||
if(sigprocmask(block_it ? SIG_BLOCK : SIG_UNBLOCK, &ss, 0) < 0) {
|
||||
if (sigprocmask(block_it ? SIG_BLOCK : SIG_UNBLOCK, &ss, 0) < 0) {
|
||||
perror("sigprocmask");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -21,10 +21,10 @@ void (*putty_signal(int sig, void (*func)(int)))(int)
|
||||
struct sigaction old;
|
||||
|
||||
sa.sa_handler = func;
|
||||
if(sigemptyset(&sa.sa_mask) < 0)
|
||||
if (sigemptyset(&sa.sa_mask) < 0)
|
||||
return SIG_ERR;
|
||||
sa.sa_flags = SA_RESTART;
|
||||
if(sigaction(sig, &sa, &old) < 0)
|
||||
if (sigaction(sig, &sa, &old) < 0)
|
||||
return SIG_ERR;
|
||||
return old.sa_handler;
|
||||
}
|
||||
|
Reference in New Issue
Block a user