summaryrefslogtreecommitdiff
path: root/src/base64.c
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
commit2726877999b4660ca318b4e98ba2e60caeff3974 (patch)
tree38ffd1707c1ed5d2d3b8c272ef85dfaaf577f22b /src/base64.c
parenta02f8503e75eb4bb03c79a8d4c4e93a825302fff (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1420 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/base64.c')
-rw-r--r--src/base64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base64.c b/src/base64.c
index 2c78a9703..af3378cf4 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -20,14 +20,14 @@
static char *int_to_base64(long);
static long base64_to_int(char *);
-char *base64enc(long i)
+const char* base64enc(long i)
{
if (i < 0)
return ("0");
return int_to_base64(i);
}
-long base64dec(char *b64)
+long base64dec(char* b64)
{
if (b64)
return base64_to_int(b64);
@@ -280,7 +280,7 @@ int b64_decode(const char *src, char *target, size_t targsize)
return (tarindex);
}
-char *encode_ip(unsigned char *ip)
+const char* encode_ip(unsigned char *ip)
{
static char buf[25];
unsigned char *cp;