projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port numbers now byte swapped
[unix-history]
/
usr
/
src
/
libexec
/
telnetd
/
telnetd.c
diff --git
a/usr/src/libexec/telnetd/telnetd.c
b/usr/src/libexec/telnetd/telnetd.c
index
192068e
..
cf707df
100644
(file)
--- a/
usr/src/libexec/telnetd/telnetd.c
+++ b/
usr/src/libexec/telnetd/telnetd.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)telnetd.c 4.1
2 82/11/17
";
+static char sccsid[] = "@(#)telnetd.c 4.1
3 82/12/25
";
#endif
/*
#endif
/*
@@
-65,8
+65,8
@@
main(argc, argv)
fprintf(stderr, "telnetd: %s: bad port #\n", *argv);
exit(1);
}
fprintf(stderr, "telnetd: %s: bad port #\n", *argv);
exit(1);
}
+ sin.sin_port = htons((u_short)sin.sin_port);
}
}
- sin.sin_port = htons((u_short)sin.sin_port);
#ifndef DEBUG
if (fork())
exit(0);
#ifndef DEBUG
if (fork())
exit(0);