mp_error_to_string: return const char* instead of char*
This commit is contained in:
		
							parent
							
								
									fe40673639
								
							
						
					
					
						commit
						abb79ebfed
					
				| @ -17,7 +17,7 @@ | |||||||
| 
 | 
 | ||||||
| static const struct { | static const struct { | ||||||
|      int code; |      int code; | ||||||
|      char *msg; |      const char *msg; | ||||||
| } msgs[] = { | } msgs[] = { | ||||||
|      { MP_OKAY, "Successful" }, |      { MP_OKAY, "Successful" }, | ||||||
|      { MP_MEM,  "Out of heap" }, |      { MP_MEM,  "Out of heap" }, | ||||||
| @ -25,7 +25,7 @@ static const struct { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /* return a char * string for a given code */ | /* return a char * string for a given code */ | ||||||
| char *mp_error_to_string(int code) | const char *mp_error_to_string(int code) | ||||||
| { | { | ||||||
|    int x; |    int x; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user