summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-16 02:23:45 +0200
committerattilamolnar <attilamolnar@hush.com>2013-05-16 02:23:45 +0200
commit712a0e5ff36e5ba052c5d1accf5f5943be4a6e8a (patch)
tree1017bf2e92d1a66507c96abd05ee4063c6c1d647 /include
parent01a796e239d23064f428698d36aa5f27efb5454b (diff)
Get rid of strlcpy(), strlcat(), charlcat() and charremove()
Diffstat (limited to 'include')
-rw-r--r--include/channels.h2
-rw-r--r--include/inspstring.h20
2 files changed, 1 insertions, 21 deletions
diff --git a/include/channels.h b/include/channels.h
index 56e1a5a49..b71da1570 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -279,7 +279,7 @@ class CoreExport Channel : public Extensible, public InviteBase
* otherwise it is replaced with '&lt;KEY&gt;'
* @return The channel mode string
*/
- char* ChanModes(bool showkey);
+ const char* ChanModes(bool showkey);
/** Spool the NAMES list for this channel to the given user
* @param user The user to spool the NAMES list to
diff --git a/include/inspstring.h b/include/inspstring.h
index 7a433427a..6864245b0 100644
--- a/include/inspstring.h
+++ b/include/inspstring.h
@@ -24,26 +24,6 @@
#include "config.h"
#include <cstring>
-#ifndef HAS_STRLCPY
-/** strlcpy() implementation for systems that don't have it (linux) */
-CoreExport size_t strlcpy(char *dst, const char *src, size_t siz);
-/** strlcat() implementation for systems that don't have it (linux) */
-CoreExport size_t strlcat(char *dst, const char *src, size_t siz);
-#endif
-
-/** charlcat() will append one character to a string using the same
- * safety scemantics as strlcat().
- * @param x The string to operate on
- * @param y the character to append to the end of x
- * @param z The maximum allowed length for z including null terminator
- */
-CoreExport int charlcat(char* x,char y,int z);
-/** charremove() will remove all instances of a character from a string
- * @param mp The string to operate on
- * @param remove The character to remove
- */
-CoreExport bool charremove(char* mp, char remove);
-
/** Binary to hexadecimal conversion */
CoreExport std::string BinToHex(const std::string& data);
/** Base64 encode */