joerg
6818646ac8
Use __dead
2011-09-16 15:39:25 +00:00
roy
7027866a09
Rename internal getline() function to get_line() so it does
...
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
dholland
1b3d4050d6
Two robustness fixes:
...
(1) make ridiculously small filename buffer larger;
(2) don't accidentally try to generate files with names containing '/'.
2008-11-23 09:13:20 +00:00
dholland
590d8d204a
One leftover trailing whitespace, caused by a merge botch at my end.
2008-11-16 05:41:39 +00:00
dholland
cd4574a9b3
Further cleanup. Merge a bit of duplicate code. Don't roll private copies
...
of str(l)cpy or rename; check said rename for failure. Set WARNS=4.
2008-11-16 05:30:24 +00:00
dholland
0f92d2c5da
Avoid running off the end of the name buffer when extracting a filename
...
from the program text.
2008-11-16 05:20:11 +00:00
dholland
671fb7b07e
Clean up argument handling.
...
- Use getopt instead of rolling one's own.
- Don't copy the -e arguments unnecessarily, and specifically, don't
copy them into a small static buffer and zoom off the end.
- Don't zoom off the end of the array of -e option files, either.
2008-11-16 05:11:35 +00:00
dholland
7327b827a5
C has a neat feature called a 'struct'. Use one, instead of
...
FORTRAN-style parallel arrays.
2008-11-16 04:51:27 +00:00
dholland
d790f1327a
Index arrays according to customary C idioms, instead of a weird mix of
...
C and FORTRAN thinking.
2008-11-16 04:39:34 +00:00
dholland
ccc5f71f77
Avoid using side-effecting macros.
2008-11-16 04:27:31 +00:00
dholland
d07cca5113
Scratch variables shouldn't be global.
2008-11-16 04:21:24 +00:00
dholland
8b10ce7005
KNF, formatting, and whitespace cleanup. No functional change intended.
2008-11-16 04:13:45 +00:00
dholland
2286fbccd9
Sprinkle static and const. Use NULL and '\0', not 0, where appropriate.
...
Fix typo in comment.
2008-11-16 03:52:24 +00:00
dholland
69a42408ff
Use <stdbool.h> and <err.h>.
2008-11-16 03:23:12 +00:00
dholland
c1f404eaad
Ansify and de-__P().
2008-11-16 03:13:39 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
dholland
2b94d6fae5
Error out instead of dumping core if we can't write (one of) the output
...
files. Fixes PR 36725.
2008-05-26 07:57:29 +00:00
dsl
eee0442cb4
No need to call isupper() before tolower()
2004-10-30 17:27:28 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun
6d415bc4b0
use bounded string op
2003-07-14 11:54:06 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
be8ae688ae
New sentence, new line.
2002-09-30 11:08:56 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
matt
fcd0fb118f
Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
...
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
garbled
9e44e9b578
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:16:34 +00:00
christos
9794a7e065
char -> unsigned char
1998-12-19 16:37:28 +00:00
wsanchez
6f3b17afac
#elsej (!) should be #else
1998-10-08 01:29:49 +00:00
lukem
bbfdb6ffc5
WARNSify, fix .Nm usage, deprecate register
1997-10-18 15:14:48 +00:00
tls
9d225a1783
RCS ID police
1997-01-09 20:18:21 +00:00
perry
8ba38ce684
Sync with 4.4BSD-Lite2
1995-09-28 05:15:05 +00:00
cgd
09a7f21ccd
pull in string.h
1994-12-24 16:35:34 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64
Add RCS indentifiers.
1993-08-01 07:22:47 +00:00
mycroft
690cae8181
Add RCS indentifiers.
1993-07-31 15:17:49 +00:00
cgd
dab5e017db
added, from net/2 (patch 124).
1993-04-09 12:58:42 +00:00