{dir,song}vec: these structs are const
We definitely don't modify them here.
This commit is contained in:
		
				
					committed by
					
						
						Max Kellermann
					
				
			
			
				
	
			
			
			
						parent
						
							f2525e3efb
						
					
				
				
					commit
					686a6df3a5
				
			@@ -6,7 +6,7 @@
 | 
				
			|||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <glib.h>
 | 
					#include <glib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static size_t dv_size(struct dirvec *dv)
 | 
					static size_t dv_size(const struct dirvec *dv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return dv->nr * sizeof(struct directory *);
 | 
						return dv->nr * sizeof(struct directory *);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@ static int songvec_cmp(const void *s1, const void *s2)
 | 
				
			|||||||
	return strcmp(a->url, b->url);
 | 
						return strcmp(a->url, b->url);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static size_t sv_size(struct songvec *sv)
 | 
					static size_t sv_size(const struct songvec *sv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return sv->nr * sizeof(struct song *);
 | 
						return sv->nr * sizeof(struct song *);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user