Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix compilation with gcc
Baptiste Daroussin committed 13 years ago
commit f53ad6a4c54eeadca9d3c59b66831ed5d25887c9
parent eed892dd5ac171d05b72daad47c54859e00c8edc
1 file changed +3 -3
modified pkg/audit.c
@@ -318,12 +318,12 @@ str_noglob_len(const char *s)
static int
audit_entry_compare(const void *a, const void *b)
{
-
	struct audit_entry_sorted *e1, *e2;
+
	const struct audit_entry_sorted *e1, *e2;
	size_t min_len;
	int result;

-
	e1 = (struct audit_entry_sorted *)a;
-
	e2 = (struct audit_entry_sorted *)b;
+
	e1 = (const struct audit_entry_sorted *)a;
+
	e2 = (const struct audit_entry_sorted *)b;

	min_len = (e1->noglob_len < e2->noglob_len ?
	    e1->noglob_len : e2->noglob_len);