small code fixes
This commit is contained in:
parent
31319a3dc7
commit
65a1f03939
|
@ -46,9 +46,6 @@
|
|||
|
||||
#define countof(a) (sizeof(a)/sizeof(*(a)))
|
||||
|
||||
// an invalid pointer
|
||||
#define _PSL_INTERNAL 1
|
||||
|
||||
typedef struct {
|
||||
char
|
||||
label_buf[48];
|
||||
|
|
|
@ -144,11 +144,6 @@ static void _vector_sort(_psl_vector_t *v)
|
|||
qsort_r(v->entry, v->cur, sizeof(_psl_vector_t *), _compare, v);
|
||||
}
|
||||
|
||||
static inline int _vector_size(_psl_vector_t *v)
|
||||
{
|
||||
return v ? v->cur : 0;
|
||||
}
|
||||
|
||||
// by this kind of sorting, we can easily see if a domain matches or not (match = supercookie !)
|
||||
|
||||
static int _suffix_compare(const _psl_entry_t *s1, const _psl_entry_t *s2)
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
#include <libpsl.h>
|
||||
|
||||
#define countof(a) (sizeof(a)/sizeof(*(a)))
|
||||
|
||||
static int
|
||||
ok,
|
||||
failed;
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
|
||||
#include <libpsl.h>
|
||||
|
||||
#define countof(a) (sizeof(a)/sizeof(*(a)))
|
||||
#define TESTDATA DATADIR"/test_psl.txt"
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue