mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical
This commit is contained in:
		
							parent
							
								
									a09d649439
								
							
						
					
					
						commit
						1b0694b794
					
				
					 99 changed files with 224 additions and 355 deletions
				
			
		| 
						 | 
				
			
			@ -49,7 +49,7 @@ static const struct zwlr_output_power_v1_listener output_power_listener = {
 | 
			
		|||
static void registry_handle_global(void *data, struct wl_registry *registry,
 | 
			
		||||
		uint32_t name, const char *interface, uint32_t version) {
 | 
			
		||||
	if (strcmp(interface, wl_output_interface.name) == 0) {
 | 
			
		||||
		struct output *output = calloc(1, sizeof(struct output));
 | 
			
		||||
		struct output *output = calloc(1, sizeof(*output));
 | 
			
		||||
		output->wl_output = wl_registry_bind(registry, name,
 | 
			
		||||
			&wl_output_interface, 1);
 | 
			
		||||
		wl_list_insert(&outputs, &output->link);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue