Commit Graph

19 Commits

Author SHA1 Message Date
dholland
69c3e9d213 Pass WARNS=4, not without some gross preprocessor hackery.
XXX: does this program actually do anything useful these days?
2009-08-13 06:59:37 +00:00
dholland
e63a3e7105 Assorted minor cleanup:
- use stdbool.h (partly)
  - move extern declarations of data to header files
  - use right types for calloc() wrapper
  - remove bogus casts on return values
  - remove excessive Pascal-style parentheses in conditionals
  - a couple const fixes
  - fix some typos in comments
2009-08-13 05:53:58 +00:00
dholland
72efe4fb6f Sprinkle const. 2009-08-13 03:50:02 +00:00
dholland
f42113e362 Whitespace. 2009-08-13 03:07:49 +00:00
dholland
b74af21b24 sprinkle static 2009-08-13 02:10:50 +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
31d51579a3 get rid of strsave(), use strdup directly 2003-07-14 11:09:19 +00:00
itojun
d91f80a702 the function is equivalent to strdup. 2003-07-14 09:41:27 +00:00
wiz
eaf8f8a4e5 Remove #ifndef'd __STDC__ code. ANSIfy. 2002-05-26 22:41:20 +00:00
christos
6941b7e8a4 strcmp returns an int not a ptr so don't compare to NULL 2000-11-15 19:54:12 +00:00
mjl
ec1d133cd3 Eliminate hard coded buffer sizes in fgets() statements, use
strlcpy() to avoid buffer overflows, increase filename buffer
to MAXPATHLEN. (from OpenBSD)
2000-01-14 06:53:48 +00:00
christos
32d3ded9b3 Fix serious bug with string overruns that caused error to coredump randomly
on NetBSD, and each time on other OS's. Also 0 -> NULL or 0 -> '\0' where
appropriate.
1999-05-15 19:05:13 +00:00
sommerfeld
fcfb860733 Don't assume isspace(0) == 1 1999-05-15 18:46:27 +00:00
christos
c3203395bd char -> unsigned char 1998-11-06 23:06:38 +00:00
lukem
397a8a0855 WARNSify (big job!), fix .Nm usage 1997-10-18 14:44:21 +00:00
christos
49a4e14351 Handle long lines without core-dumping. 1995-09-10 15:55:13 +00:00
jtc
71bb6dda25 Sync with 4.4lite2 1995-09-02 05:57:23 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
a6cd7e84d0 added, from net/2 (patch 119). 1993-04-09 12:58:06 +00:00