From: Michael Poole Date: Mon, 27 Jun 2005 13:11:52 +0000 (+0000) Subject: Remove the unused (and deceptively named) get_sockhost(). X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=5ac01d417a447084cdf7b1d40959a0f7fff0f8b1 Remove the unused (and deceptively named) get_sockhost(). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1436 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index ac5a6a5..248567b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-27 Michael Poole + + * include/s_misc.h (get_sockhost): Remove the unused (and + deceptively named) get_sockhost(). + + * ircd/s_misc.c (get_sockhost): Likewise. + 2005-06-25 Andrew Miller * ircd/ircd_crypt.c (ircd_crypt): strdup is not allowed, change to diff --git a/include/s_misc.h b/include/s_misc.h index 2f8bc14..1fb82b0 100644 --- a/include/s_misc.h +++ b/include/s_misc.h @@ -83,7 +83,6 @@ extern int exit_client_msg(struct Client *cptr, struct Client *bcptr, struct Client *sptr, const char *pattern, ...); extern void initstats(void); extern char *date(time_t clock); -extern void get_sockhost(struct Client *cptr, char *host); extern int vexit_client_msg(struct Client *cptr, struct Client *bcptr, struct Client *sptr, const char *pattern, va_list vl); extern void tstats(struct Client *cptr, const struct StatDesc *sd, diff --git a/ircd/s_misc.c b/ircd/s_misc.c index 96dd2d0..e0be99b 100644 --- a/ircd/s_misc.c +++ b/ircd/s_misc.c @@ -172,22 +172,6 @@ const char* get_client_name(const struct Client* sptr, int showip) return nbuf; } -/** Set cli_sockhost(cptr) from \a host. - * If \a host contains an '@', copy starting after that byte. - * Otherwise copy all of \a host. - * @param cptr Client to operate on. - * @param host hostname or user\@hostname string. - */ -void get_sockhost(struct Client *cptr, char *host) -{ - char *s; - if ((s = strchr(host, '@'))) - s++; - else - s = host; - ircd_strncpy(cli_sockhost(cptr), s, HOSTLEN); -} - /** * Exit one client, local or remote. Assuming for local client that * all dependents already have been removed, and socket is closed.