mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -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:
@ -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