christos
d44b4781e6
minor knf, no functional change.
2011-09-03 10:59:10 +00:00
christos
56b933f4a2
Instead of declaring our own err() which is different than the standard one,
...
and using it incorrectly in a few places because of confusion (does it print
errno or not?), declare two versions following the standard ones xerrx and,
xerr, and use those as appropriate, implementing them using them vwarn and
vwarnx.
2011-09-03 09:02:20 +00:00
lukem
0980aab530
Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare)
...
XXX: need a "cleaner" way to do the check in reverse.c, as a general rule
2009-04-13 23:33:25 +00:00
dholland
d65073510e
Use off_t, not __off_t.
2008-09-30 04:03:37 +00:00
christos
0523aae770
PR/37954: Thomas Klausner: "tail -c 2" broken.
...
It is not tail -c 2 but most of tail -c <n> with pipes. Fix by Anon Ymous
2008-02-04 16:23:11 +00:00
christos
7d7dff8590
Coverity CID 2986: Free lines before returning.
2006-04-30 23:27:15 +00:00
christos
79059c6361
Coverity CID 1563: Fix memory leak.
2006-04-09 19:42:03 +00:00
itojun
d5250e4ec9
safer use of realloc
2003-10-16 06:34:19 +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
wiz
3c4c9d2b57
Remove #if __STDC__. De-__P() and ANSIfy.
2002-06-14 00:41:42 +00:00
cgd
b02d81404c
avoid repeated error messages by making bytes(), lines() and rlines() return
...
meaningful values, which can then be checked to avoid another error message.
1999-07-21 06:38:49 +00:00
christos
7872ac63c8
explicitly zero the lines structure! How did this ever work before?
1998-11-03 14:27:09 +00:00
lukem
079884da30
WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF
1997-10-19 23:45:08 +00:00
jtc
ae646d0e62
Merged with 4.4lite.
...
Changed to conform to NetBSD's new RCS Id convention.
1994-11-23 07:41:55 +00:00
cgd
ceacf6a332
off_t foo, and MAP_FILE
1994-03-28 02:22:29 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
glass
aa97860f48
tail from ftp.uu.net:bsd-sources integrated
1993-04-30 08:04:52 +00:00