diff options
author | Aaron Ball <nullspoon@oper.io> | 2024-10-26 21:39:57 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2024-10-26 21:40:19 -0600 |
commit | d1cd894f18580e101b4f1922fdf7668890cd6970 (patch) | |
tree | 9cc19761f36af84fb035aab27d179c9fbfab048e | |
parent | f4202cd2fb94904ac3a2e5618afd87d6c7998aa1 (diff) | |
download | motd.sh-d1cd894f18580e101b4f1922fdf7668890cd6970.tar.gz motd.sh-d1cd894f18580e101b4f1922fdf7668890cd6970.tar.xz |
src main: Fix variable renames
-rw-r--r-- | src/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -31,17 +31,17 @@ int main() { cgi_print_header("text/html", 200); - if(headerfile != NULL && access(headerfile, R_OK)) - catfile(headerfile, stdout); + if(header != NULL && access(header, R_OK)) + catfile(header, stdout); // Print query string file if specified, otherwise default - if(bodyfile != NULL && access(bodyfile, R_OK)) - catfile(bodyfile, stdout); - else if(defaultfile != NULL && access(defaultfile, R_OK)) - catfile(defaultfile, stdout); + if(body != NULL && access(body, R_OK)) + catfile(body, stdout); + else if(defaultpage != NULL && access(defaultpage, R_OK)) + catfile(defaultpage, stdout); - if(footerfile != NULL && access(footerfile, R_OK)) - catfile(footerfile, stdout); + if(footer != NULL && access(footer, R_OK)) + catfile(footer, stdout); return 0; } |