summaryrefslogtreecommitdiffstats
path: root/libexec/talkd/talkd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the 3rd clause ("advertising clause") of the BSD license asbrueffer2014-02-171-5/+1
| | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week
* More -Wmissing-variable-declarations fixes.ed2012-10-201-5/+5
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Whitespace.bms2004-06-141-3/+3
|
* Do not depend on the global 'sockt' being initialized to 0;bms2004-06-141-3/+2
| | | | | | instead, use the symbolic constant STDIN_FILENO, as this is a daemon invoked from inetd. Remove 'sockt' as it is not referenced.
* Use the new style struct sockaddr instead of osockaddr in system callstjr2003-09-281-4/+6
| | | | | | so that talkd works without COMPAT_43. Obtained from: NetBSD (christos), Rumi Szabolcs
* MFp4 @27667: WARNS=5 cleanup on i386.jmallett2003-04-031-0/+1
| | | | | | | | | | | | | | | | | | | Remove the unused FILE\ *tf from print_mesg args, and the bogus passing in of an uninitialised FILE* for it. Call a timeval 'now' instead of 'clock' due to shadowing. Remove a nested localtime declaration. Make the delete invite argument match the ID type, u_int32_t. Use const for pointers to const items. Cast to long where printing as such. Include netinet/in.h for htonl/htons. Reviewed by: imp
* o Move externs to extern.himp2002-02-051-7/+4
| | | | | | | | o Use new-style prototypes exclusively rather than the old foo() style. o Use new-style function definitions. o remove register o make functions passed to signal have the right signature. o do minor const poisoning.
* Save errno in signal handlerkris2001-07-241-0/+2
| | | | | Obtained from: OpenBSD MFC After: 1 week
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Ensure that things returned by gethostname() andbrian1999-04-071-3/+4
| | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde
* Reviewed by: freebsd-current, freebsd-securitydillon1998-12-011-1/+6
| | | | | | Removed getuid() root check so ntalkd can be run from a tty sandbox. It isn't suid root anyway, who knows why the getuid() check was even in there in the first place!
* Use err(3). Add protos for -Wall.charnier1997-12-021-15/+17
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Fix buffer overrun problem.pst1997-01-181-1/+2
| | | | | | Cannidate for: 2.2 [must] Obtained from: Lite/2 and BSDI's published patch
* 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.
* add forgotten $Id$wosch1996-09-221-0/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Fix hostnames >32 charsache1994-12-151-1/+2
| | | | Submitted by: cstruble@singularity.bevc.blacksburg.va.us
* BSD 4.4 Lite Libexec Sourcesrgrimes1994-05-271-0/+127
OpenPOWER on IntegriCloud