summaryrefslogtreecommitdiff
path: root/src/config.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/config.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/config.c')
-rw-r--r--src/config.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/config.c b/src/config.c
index a3b2368b7..746cf7c7a 100644
--- a/src/config.c
+++ b/src/config.c
@@ -3,7 +3,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.
@@ -825,7 +825,7 @@ int parse(char *buf, int linenum, int reload)
case PARAM_STRING:
/* if (reload && *(char **)d->params[i].ptr)
free(*(char **)d->params[i].ptr); */
- *(char **) d->params[i].ptr = anopeStrDup(av[optind++]);
+ *(char **) d->params[i].ptr = sstrdup(av[optind++]);
if (!d->params[i].ptr) {
error(linenum, "%s: Out of memory", d->name);
return 0;
@@ -1182,7 +1182,7 @@ int read_config(int reload)
RootNumber++;
ServicesRoots =
realloc(ServicesRoots, sizeof(char *) * RootNumber);
- ServicesRoots[RootNumber - 1] = anopeStrDup(s);
+ ServicesRoots[RootNumber - 1] = sstrdup(s);
} while ((s = strtok(NULL, " ")));
}
@@ -1195,7 +1195,7 @@ int read_config(int reload)
HostNumber++;
HostSetters =
realloc(HostSetters, sizeof(char *) * HostNumber);
- HostSetters[HostNumber - 1] = anopeStrDup(s);
+ HostSetters[HostNumber - 1] = sstrdup(s);
}
} while ((s = strtok(NULL, " ")));
}
@@ -1210,7 +1210,7 @@ int read_config(int reload)
ModulesAutoload =
realloc(ModulesAutoload,
sizeof(char *) * ModulesNumber);
- ModulesAutoload[ModulesNumber - 1] = anopeStrDup(s);
+ ModulesAutoload[ModulesNumber - 1] = sstrdup(s);
}
} while ((s = strtok(NULL, " ")));
}
@@ -1225,7 +1225,7 @@ int read_config(int reload)
realloc(ModulesDelayedAutoload,
sizeof(char *) * ModulesDelayedNumber);
ModulesDelayedAutoload[ModulesDelayedNumber - 1] =
- anopeStrDup(s);
+ sstrdup(s);
}
} while ((s = strtok(NULL, " ")));
}
@@ -1365,7 +1365,7 @@ int read_config(int reload)
DomainNumber++;
NetworkDomains =
realloc(NetworkDomains, sizeof(char *) * DomainNumber);
- NetworkDomains[DomainNumber - 1] = anopeStrDup(s);
+ NetworkDomains[DomainNumber - 1] = sstrdup(s);
} while ((s = strtok(NULL, " ")));
}
}