Commit Graph

20 Commits

Author SHA1 Message Date
mrg fbffadb9f8 - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
abhinav 8dc887f792 Make all the global variables and functions static.
While there, remove unused variables and function prototypes.
Ok from christos
2016-06-23 03:58:13 +00:00
abhinav 762c2184ca Make the function static in the definition (prototype was already declared static).
Missed in my last commit.
2016-06-13 14:58:57 +00:00
abhinav 89e188185f Fix a buffer overflow when reading from files containing extra long lines.
Instead of using a statically allocated buffer, manage the buffer at run-time
and reallocate as needed.

It was dumping core for following two cases:
man evrpc | ul
man xdm | ul

While there, also remove __P macro from function prototypes.

Ok from Christos.
2016-06-12 13:29:29 +00:00
matt d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
lukem f76ec3edcf Fix -Wcast-qual issues 2009-04-14 05:46:25 +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
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
christos 1703d1eee6 Update to the new t_agetstr() API. 2001-11-02 18:27:00 +00:00
blymn 717e8dad36 Use new termcap interface. 2000-05-28 10:27:13 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
lukem 88d3d7c59e update after change to return value of tputs() third argument 1999-10-04 23:26:59 +00:00
christos 23933685ff braces 1998-12-19 23:21:24 +00:00
lukem 69ac758a21 WARNSify, fix .Nm usage, getopt returns -1 not EOF, use ANSI <string.h> funcs 1997-10-20 02:08:29 +00:00
lukem 2122942c25 WARNSify, use <termcap.h>, rename setmode() to setulmode() to prevent nameclash 1997-10-14 01:40:20 +00:00
jtc db5284ed0a merge in changes from 1.1 release branch 1995-11-28 20:58:08 +00:00
jtc 7a51c22113 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-07 00:28:21 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00