1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -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

@ -254,7 +254,7 @@ int read_dupsession_data(Conf *conf, char *arg)
}
static void help(FILE *fp) {
if(fprintf(fp,
if (fprintf(fp,
"pterm option summary:\n"
"\n"
" --display DISPLAY Specify X display to use (note '--')\n"
@ -282,8 +282,8 @@ static void help(FILE *fp) {
static void version(FILE *fp) {
char *buildinfo_text = buildinfo("\n");
if(fprintf(fp, "%s: %s\n%s\n", appname, ver, buildinfo_text) < 0 ||
fflush(fp) < 0) {
if (fprintf(fp, "%s: %s\n%s\n", appname, ver, buildinfo_text) < 0 ||
fflush(fp) < 0) {
perror("output error");
exit(1);
}
@ -520,11 +520,11 @@ bool do_cmdline(int argc, char **argv, bool do_everything, Conf *conf)
EXPECTS_ARG;
provide_xrm_string(val, appname);
} else if(!strcmp(p, "-help") || !strcmp(p, "--help")) {
} else if (!strcmp(p, "-help") || !strcmp(p, "--help")) {
help(stdout);
exit(0);
} else if(!strcmp(p, "-version") || !strcmp(p, "--version")) {
} else if (!strcmp(p, "-version") || !strcmp(p, "--version")) {
version(stdout);
exit(0);