Home | History | Annotate | Download | only in lib

Lines Matching defs:license_hash

118 static char **license_hash[HASH_SIZE];
145 if (license_hash[slot] == NULL) {
146 license_hash[slot] = calloc(sizeof(char *), 2);
147 license_hash[slot][0] = new_license;
149 for (i = 0; license_hash[slot][i]; ++i) {
150 if (!memcmp(license_hash[slot][i], license, len) &&
151 license_hash[slot][i][len] == '\0') {
161 license_hash[slot] = realloc(license_hash[slot],
163 license_hash[slot][i] = new_license;
164 license_hash[slot][i + 1] = NULL;
195 if (license_hash[slot] == NULL)
198 for (i = 0; license_hash[slot][i]; ++i) {
199 if (strncmp(license_hash[slot][i], license, len) == 0 &&
200 license_hash[slot][i][len] == '\0')