1
0
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:
Simon Tatham
2022-12-28 15:32:24 +00:00
parent 6fcc7ed728
commit d509a2dc1e
10 changed files with 39 additions and 39 deletions

View File

@ -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);
}

View File

@ -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;
}