*/
#include <byteswap.h>
+#include <ctype.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
continue;
}
if (strcmp(id, "perm") == 0) {
- char *perm;
+ char *str;
char *endp;
- err = snd_config_get_ascii(n, &perm);
+ err = snd_config_get_ascii(n, &str);
if (err < 0) {
SNDERR("The field perm must be a valid file permission");
return err;
}
- if (isdigit(*perm) == 0) {
+ if (isdigit(*str) == 0) {
SNDERR("The field perm must be a valid file permission");
return -EINVAL;
}
- perm = strtol(perm, &endp, 8);
+ perm = strtol(str, &endp, 8);
continue;
}
SNDERR("Unknown field %s", id);