mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)
This commit is contained in:
		
							parent
							
								
									a9edf44a2d
								
							
						
					
					
						commit
						7386a70746
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -1407,7 +1407,7 @@ static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc) | |||
| static int _PyCodecRegistry_Init(void) | ||||
| { | ||||
|     static struct { | ||||
|         char *name; | ||||
|         const char *name; | ||||
|         PyMethodDef def; | ||||
|     } methods[] = | ||||
|     { | ||||
|  |  | |||
|  | @ -614,7 +614,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P | |||
| 
 | ||||
| #ifndef MS_WINDOWS | ||||
|     if (i != 0) { | ||||
|         char *s = strerror(i); | ||||
|         const char *s = strerror(i); | ||||
|         message = PyUnicode_DecodeLocale(s, "surrogateescape"); | ||||
|     } | ||||
|     else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andy Lester
						Andy Lester