aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-01 14:11:19 +0100
committerMax Kellermann <max@duempel.org>2008-11-01 14:11:19 +0100
commit35710a81eab5c9dcb5008d127daa55ac3a714071 (patch)
treedcbdc8b9c94efbb83815b9636951af9b129a80bc /src/utils.c
parentb996108675896e6b4be08f78e32f28bc6d454ad9 (diff)
downloadmpd-35710a81eab5c9dcb5008d127daa55ac3a714071.tar.gz
mpd-35710a81eab5c9dcb5008d127daa55ac3a714071.tar.xz
mpd-35710a81eab5c9dcb5008d127daa55ac3a714071.zip
utils: use GUINT32_FROM_LE() instead of readLEuint32()
Eliminate code already provided by GLib.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils.c b/src/utils.c
index 923407f69..bb5107bb6 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -75,13 +75,6 @@ int ipv6Supported(void)
#endif
}
-unsigned long readLEuint32(const unsigned char *p)
-{
- return ((unsigned long)p[0] << 0) |
- ((unsigned long)p[1] << 8) |
- ((unsigned long)p[2] << 16) | ((unsigned long)p[3] << 24);
-}
-
mpd_malloc char *xstrdup(const char *s)
{
char *ret = strdup(s);