summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2024-10-26 21:39:57 -0600
committerAaron Ball <nullspoon@oper.io>2024-10-26 21:40:19 -0600
commitd1cd894f18580e101b4f1922fdf7668890cd6970 (patch)
tree9cc19761f36af84fb035aab27d179c9fbfab048e
parentf4202cd2fb94904ac3a2e5618afd87d6c7998aa1 (diff)
downloadmotd.sh-d1cd894f18580e101b4f1922fdf7668890cd6970.tar.gz
motd.sh-d1cd894f18580e101b4f1922fdf7668890cd6970.tar.xz
src main: Fix variable renames
-rw-r--r--src/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 164582f..5b0029b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}

Generated by cgit