mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
		@@ -312,7 +312,7 @@ static void
 | 
			
		||||
WriteDataToArchiveZlib(ArchiveHandle *AH, CompressorState *cs,
 | 
			
		||||
					   const char *data, size_t dLen)
 | 
			
		||||
{
 | 
			
		||||
	cs->zp->next_in = (void *) data;
 | 
			
		||||
	cs->zp->next_in = (void *) unconstify(char *, data);
 | 
			
		||||
	cs->zp->avail_in = dLen;
 | 
			
		||||
	DeflateCompressorZlib(AH, cs, false);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user