1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00
Commit Graph

22 Commits

Author SHA1 Message Date
bluhm
6a86ab6ac1 Use a boolean variable to remember the quotation level instead of
doing string pointer arithmetic.  Fixes a clang warning.
OK otto@ tom@
2017-08-22 15:04:18 +00:00
guenther
2056a2f4b7 Eliminate a pile of casts that were superfluous or wrong, or that were
the result of bad type choices, particularly (unsigned char *) vs
(const char *).  Also, use reallocarray().
2014-09-09 03:41:08 +00:00
jsg
c4fad9a3d0 use ansi style function declarations
with suggestions from and ok guenther@
2014-07-22 07:30:24 +00:00
guenther
ac1fbb3e33 Eliminate silly call() routine that fakes up internal calls as if
the user typed in undocumented arguments by splitting two functions
and doing normal (shock!) C calls.

Move extern declarations to externs.h
Eliminate another function cast
2014-07-20 12:08:55 +00:00
guenther
d2b90f312d Delete an insane chunk of code for handling broken poll() emulation.
Pass poll() INFTIM instead of -1
2014-07-20 09:20:48 +00:00
guenther
aef7c4a175 Add prototypes to some function callbacks and fix the type errors that
this reveals.
Make NetTrace static to utilities.c
2014-07-20 08:56:47 +00:00
guenther
c5bc9e33df More encryption tentacles: intr_happened and intr_waiting vanish
Push more includes into .c files
Make ring.c only need ring.h
2014-07-20 08:12:45 +00:00
guenther
a72d26d29c Don't depend on <sys/param.h> for MAXPATHLEN 2014-07-20 07:34:43 +00:00
guenther
1186fcf9b9 Correctly cast to unsigned char for ctype functions/macros
Push <ctype.h> and <unistd.h> into the .c files
2014-07-20 06:39:41 +00:00
guenther
58f11bc71f Simplify #includes, start pushing them into the .c files, eliminate
extern declarations from .c files that duplicate those in .h files,
start marking functions with __dead
2014-07-20 05:22:02 +00:00
guenther
5b25ad01b2 Flense the telnet code base of unwanted ifdefs: authentication/encryption
tn3270, sgtty, pre-POSIX and other ancient system support, etc.  Brings up
to date the manpage with what we support.

ok matthieu@ beck@ jmc@ millert@ deraadt@ okan@
2014-07-19 23:50:38 +00:00
millert
8df92528b5 Convert select() to poll(). OK deraadt@ 2013-04-21 09:51:24 +00:00
chl
c87a726c3e remove "unused variable" warnings
tested by deraadt@ on a gcc2 arch

looks ok ray@ ok deraadt@
2007-10-17 20:10:44 +00:00
millert
f75387cb26 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-03 02:56:05 +00:00
hin
3b61587d2c strcpy -> strlcpy
strcat -> strlcat

ok millert@
2003-04-03 12:05:58 +00:00
itojun
9685057c8f strlcpy 2002-02-01 06:59:17 +00:00
mpech
c0932ef1ff kill more registers
millert@ ok
2001-11-19 19:02:13 +00:00
art
fc4fc7ce10 encryption support from kth-krb 0.9.8 (kerberos only)
plus some tweaks for better binary/8-bit support.
1998-03-12 04:57:26 +00:00
jason
c27e1f839e fixes to compile against netbsd domestic libtelnet 1998-02-16 04:57:55 +00:00
robin
4504b872d4 Add <sys/socket.h> for setsockopt(2), <unistd.h> for select(2).
Remove two unused variables: `pettydump' and `buf'.
Remove redundant case label: `def_case'.
1996-12-12 11:24:08 +00:00
niklas
4f4c46ca88 From NetBSD: merge of 960317 1996-03-27 19:32:19 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00