Removed openfile and closefile functions

They are not used and so were removed
stable
Justin Reichardt 2021-09-02 16:43:27 -05:00
parent be119d5922
commit fe7d96e573
2 changed files with 0 additions and 19 deletions

View File

@ -115,23 +115,6 @@ int parse_config(struct entry **entries){
if (rc != 0){return 1;}
return 0;
}
int closefile(FILE **file, char *location){
int rc = 0;
rc = fclose(*file);
if (rc != 0){
printf("Failed to open %s\n", location);
return errno;
}
return 0;
}
int openfile(FILE **file, char *mode, char *location){
*file = fopen(location, mode);
if (*file == NULL){
printf("Failed to open %s\n", location);
return errno;
}
return 0;
}
short int determine_config_entry_value(char *buff){
if (strncmp(buff,"#", 1) == 0){return CONTENTTYPE_COMMENT;}
else if (strcmp(buff,"site") == 0){return CONTENTTYPE_SITE;}

View File

@ -57,8 +57,6 @@ struct entry{
int parse_config(struct entry **entries);
int openfile(FILE **file, char *mode, char *location);
int closefile(FILE **file, char *location);
short int determine_config_entry_value(char *buff);
int preserve_static_entries();
int add_site_entries(struct entry **entries);