Lines Matching refs:license_hash
117 static char **license_hash[HASH_SIZE];
144 if (license_hash[slot] == NULL) {
145 license_hash[slot] = calloc(sizeof(char *), 2);
146 license_hash[slot][0] = new_license;
148 for (i = 0; license_hash[slot][i]; ++i) {
149 if (!memcmp(license_hash[slot][i], license, len) &&
150 license_hash[slot][i][len] == '\0') {
160 license_hash[slot] = realloc(license_hash[slot],
162 license_hash[slot][i] = new_license;
163 license_hash[slot][i + 1] = NULL;
194 if (license_hash[slot] == NULL)
197 for (i = 0; license_hash[slot][i]; ++i) {
198 if (strncmp(license_hash[slot][i], license, len) == 0 &&
199 license_hash[slot][i][len] == '\0')