mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
More src/pulsecore/cpu-arm.c FTBFS fixes
Fix missing argument to pa_read(), and be consistent with declaration of state variable in pa_cpu_init_arm(). Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
This commit is contained in:
parent
e5e432fe0a
commit
a63cf050b0
1 changed files with 3 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ static char *get_cpuinfo(void) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if ((n = pa_read(fd, cpuinfo, MAX_BUFFER-1)) < 0) {
|
||||
if ((n = pa_read(fd, cpuinfo, MAX_BUFFER-1, NULL)) < 0) {
|
||||
pa_xfree(cpuinfo);
|
||||
pa_close(fd);
|
||||
return NULL;
|
||||
|
|
@ -106,7 +106,8 @@ void pa_cpu_init_arm (void) {
|
|||
}
|
||||
/* get the CPU features */
|
||||
if ((line = get_cpuinfo_line (cpuinfo, "Features"))) {
|
||||
char *state = NULL, *current;
|
||||
const char *state = NULL;
|
||||
char *current;
|
||||
|
||||
while ((current = pa_split_spaces (line, &state))) {
|
||||
if (!strcmp (current, "vfp"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue