summaryrefslogtreecommitdiffstats
path: root/usr.bin/chat/chat.c
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-191-27/+26
| | | | | | | | | | | | | | | | 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'.
* Make sure that each va_start has one and only one matching va_end,kevlo2012-05-291-0/+2
| | | | especially in error cases.
* Merge revisions 1.10 and 1.11 from DragonFly:delphij2008-03-071-68/+61
| | | | | | | | | | | | | | | | | | | | | - Use real getopt() handling instead of the hand-rolled and IOCCC-worthy "Micro getopt()" macros, plus clean up to the option handling code: * Sort the options in the switch statement; * Plug piddling memory leaks when processing repeated options by freeing strings before allocating them for a second time; * Die with a fatal error if the requested report file cannot be opened for appending; * Don't call init() before usage() (to prevent the usage message being mangled by changes to the terminal settings;) - Clean up the usage message, both in usage() and in the main program comment, both stylistically (sort and combine options) and for accuracy (following the manual page, make note of the -s and -S flags, and use the term 'send' instead of 'say' to reduce confusion (SAY is the name of a command for output to the user, not the connection.)) Obtained from: DragonFly
* Rename logf --> chat_logf to avoid naming conflictskientzle2003-10-311-29/+29
| | | | | | with GCC built-in (and with C90 reserved library name). Approved by: gordon (Mentor)
* Big cleanup. Remove unused stuff, make closer to style(9).markm2003-08-221-183/+79
| | | | OK'ed by: peter (long time ago)
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* Remove local prototypes for main().jmallett2002-08-191-2/+0
|
* remove __Pimp2002-03-221-62/+34
|
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-261-5/+5
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Fix a buffer overflow due to sending strings >1k in length. This is unlikelykris1999-11-251-7/+9
| | | | | | to be a security problem, but it's not totally impossible. OpenBSD take note Reviewed by: imp
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-061-1/+2
|
* Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth)peter1998-06-231-1/+11
|
* merge ppp-2.3.3 changes onto mainlinepeter1998-03-211-718/+698
|
* -Wall cleanup.alex1997-12-291-2/+2
|
* Merge ppp-2.3.1 changes onto mainlinepeter1997-08-221-118/+453
|
* Remove use of program_name variable.charnier1997-06-241-9/+7
|
* make it so that chat doesn't fail when it can't get terminal params..jmg1997-04-021-2/+3
| | | | | | | this allows it to work on non-tty input... also don't warn when this happens as it could get noisy... Silence is Acceptance
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Merge in changes from ppp-2.2's chat onto the mainline...peter1995-10-311-244/+427
|
* Remove trailing whitespace.rgrimes1995-05-301-6/+6
|
* Use proper lock dir nameache1994-12-191-2/+2
|
* chat for ppp, from ppp 2.1.2lars1994-11-121-0/+1166
OpenPOWER on IntegriCloud