diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-03 07:42:49 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-03 07:42:49 +0000 |
commit | f58026749b0c0770a322893b27c013168be5cdbc (patch) | |
tree | eb4c44e9509b4a5071b2597c880d083b2cbca340 /include | |
parent | ed568f4750f41b367e2d74406cb76f67edb83bbf (diff) |
Fixed base64 functions to be const safe until I can convert them to use std::string instead, also a little cleanup while I was in there.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2729 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/extern.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/extern.h b/include/extern.h index 11ba59bd5..473279de2 100644 --- a/include/extern.h +++ b/include/extern.h @@ -614,12 +614,12 @@ E void UserSetInternalModes(User *user, int ac, const char **av); /******************************************************************************/ -E const char* base64enc(long i); -E long base64dec(char *b64); +E const char *base64enc(long i); +E long base64dec(const char *b64); E long base64dects(const char *ts); -E int b64_encode(char *src, size_t srclength, char *target, size_t targsize); +E int b64_encode(const char *src, size_t srclength, char *target, size_t targsize); E int b64_decode(const char *src, char *target, size_t targsize); -E const char* encode_ip(unsigned char *ip); +E const char *encode_ip(unsigned char *ip); E int decode_ip(const char *buf); E char *host_resolve(char *host); |