[dacp] Fix issue where Hyperfine Remote provides speaker ids as decimal

Also align a bit on how we handle hex/dec parameters
This commit is contained in:
ejurgensen
2017-08-27 00:02:39 +02:00
parent 8c0be3a0f3
commit c45a85d143
2 changed files with 22 additions and 8 deletions

View File

@@ -130,10 +130,6 @@ safe_hextou32(const char *str, uint32_t *val)
*val = 0;
/* A hex shall begin with 0x */
if (strncmp(str, "0x", 2) != 0)
return safe_atou32(str, val);
errno = 0;
intval = strtoul(str, &end, 16);