mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
Removed trailing white space from *.h and *.c files
This commit is contained in:
parent
920d77847d
commit
33896a3f38
38 changed files with 172 additions and 165 deletions
2
CHANGES
2
CHANGES
|
@ -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.
|
||||||
|
|
3
socat.c
3
socat.c
|
@ -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
|
||||||
|
|
12
xio-exec.c
12
xio-exec.c
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue