summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset/map.c
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-191-5/+4
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Remove unnecessary termcap.h includes inherited from extern.h and otherdelphij2009-12-111-7/+3
| | | | | unneeded headers. While I'm there, make function definations ANSI prototypes.
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-0/+1
| | | | an initial value.
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'rejmallett2002-05-171-1/+1
| | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3).
* remove __Pimp2002-03-221-1/+1
|
* WARNS=2 fixes, use __FBSDID().markm2001-12-111-15/+18
|
* Take a shot at making this work under termcap/terminfo ncurses. Itpeter1999-08-301-3/+3
| | | | | cheats a bit by accessing the termcap string buffer. A better solution is needed.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Use err(3) insteadof local redefinition. Sync usage string with man page.charnier1997-08-181-5/+9
|
* Make tset works with non-fixed termios speeds too.ache1995-08-041-23/+5
| | | | Eliminate ospeed switch using new _set_ospeed function
* Speed matching code never successful, because ospeed range is [0..17]ache1994-09-091-9/+16
| | | | | | but termios speed range is [0..115200]. Of cource ospeed initialized with wrong value too which cann affects terminals with padding, fixed. 57600,115200 added.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+263
OpenPOWER on IntegriCloud