summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 18:28:55 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 18:28:55 +0000
commite6ed7b9eb57116b2d9a8e1d781fd334f409ed01b (patch)
tree03a1e12776aba3b4c5e7969ee829737544f56ce3 /src/misc.c
parent655889c154fdc3016038d6241a0c50978dd12fac (diff)
BUILD : 1.7.5 (395) BUGS : N/A NOTES : Fixed a typo in all source files, and merged sstrdup and anopeStrDup, as they do the same thing
git-svn-id: svn://svn.anope.org/anope/trunk@395 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@260 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/misc.c b/src/misc.c
index 49b08e7cd..b0e87cd54 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -4,7 +4,7 @@
* (C) 2003 Anope Team
* Contact us at info@anope.org
*
- * Please read COPYING and README for furhter details.
+ * Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
@@ -896,7 +896,7 @@ char *host_resolve(char *host)
memcpy(&ip, hentp->h_addr, sizeof(hentp->h_length));
addr.s_addr = ip;
ntoa(addr, ipbuf, sizeof(ipbuf));
- ipreturn = anopeStrDup(ipbuf);
+ ipreturn = sstrdup(ipbuf);
if (debug) {
alog("Resolved %s to %s",host, ipbuf);
}
@@ -907,17 +907,4 @@ char *host_resolve(char *host)
}
}
-char *anopeStrDup(const char *src) {
- char *ret=NULL;
- if(src) {
-#ifdef __STRICT_ANSI__
- if( (ret = (char *)malloc(strlen(src)+1)) ) {;
- strcpy(ret,src);
- }
-#else
- ret = strdup(src); /* this way will prolly be faster, use it if we can */
-#endif
- }
- return ret;
-}