aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-29 21:02:22 +0100
committerMax Kellermann <max@duempel.org>2008-10-29 21:02:22 +0100
commit8f3d96221902698c295acab1870e43013b509ca2 (patch)
tree913981d833b745c574391272709983b68c655c4f /src/utils.c
parentcf376b4bc862f98d09ddb2fc6ca4751ae259a3d2 (diff)
downloadmpd-8f3d96221902698c295acab1870e43013b509ca2.tar.gz
mpd-8f3d96221902698c295acab1870e43013b509ca2.tar.xz
mpd-8f3d96221902698c295acab1870e43013b509ca2.zip
log: don't use utils.h
Prefer GLib over utils.h.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/utils.c b/src/utils.c
index 8d5878723..923407f69 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -75,26 +75,6 @@ int ipv6Supported(void)
#endif
}
-char *appendToString(char *dest, const char *src)
-{
- int destlen;
- int srclen = strlen(src);
-
- if (dest == NULL) {
- dest = xmalloc(srclen + 1);
- memset(dest, 0, srclen + 1);
- destlen = 0;
- } else {
- destlen = strlen(dest);
- dest = xrealloc(dest, destlen + srclen + 1);
- }
-
- memcpy(dest + destlen, src, srclen);
- dest[destlen + srclen] = '\0';
-
- return dest;
-}
-
unsigned long readLEuint32(const unsigned char *p)
{
return ((unsigned long)p[0] << 0) |