libtommath: mp_error_to_string: return const char* instead of char*
From https://github.com/libtom/libtommath Change-Id: Idd5cbab380f5d504fece93afb3a5fcc026309482
This commit is contained in:
		 Steffen Jaeckel
					Steffen Jaeckel
				
			
				
					committed by
					
						 Jeffrey Altman
						Jeffrey Altman
					
				
			
			
				
	
			
			
			 Jeffrey Altman
						Jeffrey Altman
					
				
			
						parent
						
							5bc653f0ef
						
					
				
				
					commit
					7fe018e418
				
			| @@ -17,7 +17,7 @@ | ||||
|  | ||||
| static const struct { | ||||
|      int code; | ||||
|      char *msg; | ||||
|      const char *msg; | ||||
| } msgs[] = { | ||||
|      { MP_OKAY, "Successful" }, | ||||
|      { MP_MEM,  "Out of heap" }, | ||||
| @@ -25,7 +25,7 @@ static const struct { | ||||
| }; | ||||
|  | ||||
| /* 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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user