utils: use GUINT32_FROM_LE() instead of readLEuint32()

Eliminate code already provided by GLib.
This commit is contained in:
Max Kellermann
2008-11-01 14:11:19 +01:00
parent b996108675
commit 35710a81ea
3 changed files with 8 additions and 17 deletions

View File

@@ -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);