From owner-cvs-all Tue Apr 6 8:59:26 1999 Delivered-To: cvs-all@freebsd.org Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.40.153]) by hub.freebsd.org (Postfix) with ESMTP id D962415028; Tue, 6 Apr 1999 08:59:09 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by phk.freebsd.dk (8.9.1/8.8.8) with ESMTP id RAA22819; Tue, 6 Apr 1999 17:57:11 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.2/8.9.2) with ESMTP id RAA62622; Tue, 6 Apr 1999 17:56:54 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers Cc: Mark Murray , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/crypto/telnet/telnetd telnetd.c In-reply-to: Your message of "Tue, 06 Apr 1999 16:46:37 BST." <199904061546.QAA15560@keep.lan.Awfulhak.org> Date: Tue, 06 Apr 1999 17:56:54 +0200 Message-ID: <62620.923414214@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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