mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05: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
							
								
									8c7148a4ea
								
							
						
					
					
						commit
						09c416e11f
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -67,7 +67,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;
 | 
			
		||||
| 
						 | 
				
			
			@ -105,7 +105,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