diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-25 13:16:18 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-25 13:16:18 +0000 |
commit | 250a9f71cf8a6c613ab78286af819996efd4306f (patch) | |
tree | f8a848943dd7b44cb62aebe9192d435d7fc14204 /src/misc.c | |
parent | 44e6352387f0e55ba3006e00831eff3bd0674ba6 (diff) |
BUILD : 1.7.6 (499) BUGS : NOTES : Fixed several compiler warnings with make strict, removed 2 deprecated config vars.
git-svn-id: svn://svn.anope.org/anope/trunk@499 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@353 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c index 0b2d5af10..1d011ece5 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1103,4 +1103,26 @@ char *host_resolve(char *host) } } +/*************************************************************************/ + +/** + * Change an unsigned string to a signed string, overwriting the original + * string. + * @param input string + * @return output string, same as input string. + */ + +char *str_signed(u_char *str) +{ + char *nstr; + + nstr = (char *)str; + while (*str) { + *nstr = (char)*str; + str++; nstr++; + } + + return nstr; +} +/* EOF */ |