Lines Matching defs:license_file
49 fprintf(stderr,"Usage: geoipupdate [-hv] [-f license_file] [-d custom directory]\n");
56 void print_status (int err, char * license_file) {
60 fprintf(stderr,"Invalid License Key in %s - Please visit http://www.maxmind.com/app/products for a subscription\n",license_file);
74 char * license_file = NULL;
111 license_file = optarg;
132 if (license_file == NULL) {
133 license_file = malloc(sizeof(char) * (strlen(SYSCONFDIR)+strlen(GeoIPConfFile)+2));
134 license_file[0] = '\0';
135 strcat(license_file, SYSCONFDIR);
136 strcat(license_file, "/");
137 strcat(license_file, GeoIPConfFile);
140 license_fh = fopen(license_file,"r");
142 fprintf(stderr,"Error opening GeoIP Configuration file %s\n",license_file);
147 printf("Opened License file %s\n", license_file);
267 print_status(err, license_file);
273 print_status(err, license_file);