Removed trailing white space from *.h and *.c files

This commit is contained in:
Gerhard Rieger 2023-06-12 23:01:54 +02:00
parent 920d77847d
commit 33896a3f38
38 changed files with 172 additions and 165 deletions

View file

@ -83,6 +83,8 @@ Coding:
Stream dump write now warn on write errors and partial writes (but Stream dump write now warn on write errors and partial writes (but
still do not recover). still do not recover).
Removed trailing white space from *.h and *.c files.
Porting: Porting:
Small correction in configure.ac makes Socat C99 able. Small correction in configure.ac makes Socat C99 able.
Thanks to Florian Weimer from Red Hat for providing a patch. Thanks to Florian Weimer from Red Hat for providing a patch.

View file

@ -738,8 +738,7 @@ int socat(const char *address1, const char *address2) {
#endif #endif
Info("resolved and opened all sock addresses"); Info("resolved and opened all sock addresses");
return return _socat(); /* nsocks, sockets are visible outside function */
_socat(); /* nsocks, sockets are visible outside function */
} }
/* checks if this is a connection to a child process, and if so, sees if the /* checks if this is a connection to a child process, and if so, sees if the

View file

@ -126,11 +126,17 @@ static int xioopen_exec(int argc, const char *argv[], struct opt *opts,
Execvp(token, pargv); Execvp(token, pargv);
/* here we come only if execvp() failed */ /* here we come only if execvp() failed */
switch (pargc) { switch (pargc) {
case 1: Error3("execvp(\"%s\", \"%s\"): %s", token, pargv[0], strerror(errno)); break; case 1:
case 2: Error4("execvp(\"%s\", \"%s\", \"%s\"): %s", token, pargv[0], pargv[1], strerror(errno)); break; Error3("execvp(\"%s\", \"%s\"): %s",
token, pargv[0], strerror(errno)); break;
case 2:
Error4("execvp(\"%s\", \"%s\", \"%s\"): %s",
token, pargv[0], pargv[1], strerror(errno)); break;
case 3: case 3:
default: default:
Error5("execvp(\"%s\", \"%s\", \"%s\", \"%s\", ...): %s", token, pargv[0], pargv[1], pargv[2], strerror(errno)); break; Error5("execvp(\"%s\", \"%s\", \"%s\", \"%s\", ...): %s", token,
pargv[0], pargv[1], pargv[2], strerror(errno));
break;
} }
Exit(1); /* this child process */ Exit(1); /* this child process */
} }