server/user_db.c
static struct user *user_db_get_nolock(uint8_t *uid) {
	uint64_t idx = hash_id(uid) % db.size;

	struct user_db_ent *ent = db.buckets[idx];
	struct user *ret = NULL;
	while(ent) {
		if(memcmp_ct(ent->u.uid, uid, 0x20) == 0) {
			ret = &ent->u;
			break;
		}

		ent = ent->next;
	}

	return ret;
}
/* allows it to be called from within user_db_add */
allows it to be called from within user_db_add
allows it to be called from within user_db_add
static struct user *user_db_get_nolock(uint8_t *uid) {
	uint64_t idx = hash_id(uid) % db.size;
	struct user_db_ent *ent = db.buckets[idx];
	struct user *ret = NULL;
	while(ent) {
		if(memcmp_ct(ent->u.uid, uid, 0x20) == 0) {
			ret = &ent->u;
			break;
		}
		ent = ent->next;
	}
	return ret;
}
static struct user * user_db_get_nolock ( uint8_t * uid ) { uint64_t idx = hash_id ( uid ) % db . size ; struct user_db_ent * ent = db . buckets [ idx ] ; struct user * ret = NULL ; while ( ent ) { if ( memcmp_ct ( ent -> u . uid , uid , 0x20 ) == 0 ) { ret = & ent -> u ; break ; } ent = ent -> next ; } return ret ; }
allows it to be called from within user_db_add
allows it to be called from within user_db_add