Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-06-27 13:12:12 UTC

Modified files:
     ircd/s_misc.c include/s_misc.h ChangeLog

Log message:

Remove the unused (and deceptively named) get_sockhost().

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.653 ircu2.10/ChangeLog:1.654
--- ircu2.10/ChangeLog:1.653    Fri Jun 24 06:57:21 2005
+++ ircu2.10/ChangeLog  Mon Jun 27 06:11:52 2005
@@ -1,3 +1,10 @@
+2005-06-27  Michael Poole <[EMAIL PROTECTED]>
+
+       * 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  <[EMAIL PROTECTED]>
 
        * ircd/ircd_crypt.c (ircd_crypt): strdup is not allowed, change to
Index: ircu2.10/include/s_misc.h
diff -u ircu2.10/include/s_misc.h:1.9 ircu2.10/include/s_misc.h:1.10
--- ircu2.10/include/s_misc.h:1.9       Sun Nov  7 12:57:49 2004
+++ ircu2.10/include/s_misc.h   Mon Jun 27 06:11:52 2005
@@ -1,6 +1,6 @@
 /** @file s_misc.h
  * @brief Miscellaneous support functions and declarations.
- * @version $Id: s_misc.h,v 1.9 2004/11/07 20:57:49 entrope Exp $
+ * @version $Id: s_misc.h,v 1.10 2005/06/27 13:11:52 entrope Exp $
  */
 #ifndef INCLUDED_s_misc_h
 #define INCLUDED_s_misc_h
@@ -83,7 +83,6 @@
                            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: ircu2.10/ircd/s_misc.c
diff -u ircu2.10/ircd/s_misc.c:1.48 ircu2.10/ircd/s_misc.c:1.49
--- ircu2.10/ircd/s_misc.c:1.48 Sun May  1 09:11:01 2005
+++ ircu2.10/ircd/s_misc.c      Mon Jun 27 06:11:51 2005
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Miscellaneous support functions.
- * @version $Id: s_misc.c,v 1.48 2005/05/01 16:11:01 entrope Exp $
+ * @version $Id: s_misc.c,v 1.49 2005/06/27 13:11:51 entrope Exp $
  */
 #include "config.h"
 
@@ -172,22 +172,6 @@
   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 [EMAIL PROTECTED] 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.
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to