Use special type for hashlist sorting in brain_compute_session()

This commit is contained in:
Jens Steube
2020-05-12 08:54:26 +02:00
parent f9e4dc0db1
commit ff37264c36
4 changed files with 32 additions and 14 deletions

View File

@@ -24,7 +24,8 @@
#include <sys/select.h>
#endif
int sort_by_stringptr (const void *p1, const void *p2);
int sort_by_string_sized (const void *p1, const void *p2);
int sort_by_stringptr (const void *p1, const void *p2);
bool overflow_check_u32_add (const u32 a, const u32 b);
bool overflow_check_u32_mul (const u32 a, const u32 b);

View File

@@ -1626,6 +1626,13 @@ typedef struct cpu_set
} cpu_set_t;
#endif
typedef struct
{
char *buf;
int len;
} string_sized_t;
/* AES context. */
typedef struct aes_context
{