Remove the unused (and deceptively named) get_sockhost().
authorMichael Poole <mdpoole@troilus.org>
Mon, 27 Jun 2005 13:11:52 +0000 (13:11 +0000)
committerMichael Poole <mdpoole@troilus.org>
Mon, 27 Jun 2005 13:11:52 +0000 (13:11 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1436 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
include/s_misc.h
ircd/s_misc.c

index ac5a6a5dc8712477c43ff8a419349cd4e16ddb77..248567bf7010d4e557ca1b4803fc6777ac985e17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-27  Michael Poole <mdpoole@troilus.org>
+
+       * 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  <a1kmm@amxl.com>
 
        * ircd/ircd_crypt.c (ircd_crypt): strdup is not allowed, change to
index 2f8bc140d55e57434f9c9d4a67c200b6908f00c0..1fb82b0e97cb4c2de855364055bee28dbfdc34d8 100644 (file)
@@ -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,
index 96dd2d09b40968f9195a368da1263ec14dbc12a6..e0be99b7d04b70cc9f691ef45ff28fcf74258ac7 100644 (file)
@@ -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.