Date: Tue, 06 Apr 1999 17:56:54 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Brian Somers <brian@Awfulhak.org> Cc: Mark Murray <mark@grondar.za>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/crypto/telnet/telnetd telnetd.c Message-ID: <62620.923414214@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 06 Apr 1999 16:46:37 BST." <199904061546.QAA15560@keep.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199904061546.QAA15560@keep.lan.Awfulhak.org>, Brian Somers writes: >[.....] >> >Any objections to >> > >> > void >> > utsethost(struct utmp *u, struct in_addr); >> > >> >in libutil, where u->ut_host is filled in the way rlogind (and now >> >telnetd) does it ? >> >> I think that does too much. I would like it to be available for >> other than utmp as well. I'll not protest if you make two >> functions, one "raw" and one for "utmp" uses. > >Ok - perhaps this would be more useful: > > void > realhostname(char *host, size_t hostsize, struct in_addr); > >and would normally be called as > > realhostname(u->ut_host, sizeof u->ut_host, ip); > Brilliant my dear Watson! -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62620.923414214>