mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	scanner: Fix wrong restriction on since field
The scanner would not allow two consecutive requests on an interface to have the same since number, so if a new version of an interface added two new request the version number would have to be increased by two.
This commit is contained in:
		
							parent
							
								
									d7a63fdbfb
								
							
						
					
					
						commit
						00639de120
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -356,7 +356,7 @@ start_element(void *data, const char *element_name, const char **atts)
 | 
			
		|||
			version = strtol(since, &end, 0);
 | 
			
		||||
			if (errno == EINVAL || end == since || *end != '\0')
 | 
			
		||||
				fail(ctx, "invalid integer\n");
 | 
			
		||||
			if (version <= ctx->interface->since)
 | 
			
		||||
			if (version < ctx->interface->since)
 | 
			
		||||
				fail(ctx, "since version not increasing\n");
 | 
			
		||||
			ctx->interface->since = version;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue