diff options
author | Max Kellermann <max@duempel.org> | 2008-11-01 14:11:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-01 14:11:19 +0100 |
commit | 35710a81eab5c9dcb5008d127daa55ac3a714071 (patch) | |
tree | dcbdc8b9c94efbb83815b9636951af9b129a80bc /src/utils.c | |
parent | b996108675896e6b4be08f78e32f28bc6d454ad9 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/utils.c | 7 |
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); |