mirror of
https://repo.or.cz/socat.git
synced 2025-07-08 13:36:32 +00:00
replaced // comments with C conforming /* */
This commit is contained in:
parent
0e1eb7e4b4
commit
d70b8963aa
4 changed files with 6 additions and 9 deletions
|
@ -127,11 +127,11 @@ int main(int argc, const char *argv[]) {
|
|||
exit(1);
|
||||
}
|
||||
if (outfname) {
|
||||
// special cases
|
||||
/* special cases */
|
||||
if (!strcmp(outfname,"stdin")) { fdout=stdin; }
|
||||
else if (!strcmp(outfname,"stdout")) { fdout=stdout; }
|
||||
else if (!strcmp(outfname,"stderr")) { fdout=stderr; }
|
||||
// file descriptor
|
||||
/* file descriptor */
|
||||
else if (*outfname == '+') {
|
||||
a = outfname+1;
|
||||
fildes = strtoul(a, (char **)&a, 0);
|
||||
|
@ -140,7 +140,7 @@ int main(int argc, const char *argv[]) {
|
|||
exit(1);
|
||||
}
|
||||
} else {
|
||||
// file name
|
||||
/* file name */
|
||||
if ((fdout = fopen(outfname, "w")) == NULL) {
|
||||
Error2("can't fopen '%s': %s\n",
|
||||
outfname, strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue