commit 77d6b02a16c8073785813141cd7b794a068a7957
parent dd030bf24a134116314e8a8e6b1377b3eb053fff
Author: libredev <libredev@ircforever.org>
Date: Fri, 24 Feb 2023 15:51:57 +0530
move url of status-json.xsl to Makefile
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -5,12 +5,13 @@
# See COPYING file for details.
INSTALL_DIR=/var/www/htdocs/radio.ircforever.org
+STATUS_JSON=http://theinterlude.live:8000/status-json.xsl
CC = cc
CFLAGS =\
-g -std=c99 -Wall -Wextra -Wpedantic -Wfatal-errors\
-Wstrict-prototypes -Wold-style-definition\
- -D_DEFAULT_SOURCE
+ -D_DEFAULT_SOURCE -DSTATUS_JSON=\"$(STATUS_JSON)\"
index.cgi: main.c comment.c utils.c comment.h utils.h http.h pdjson/pdjson.c
$(CC) $(CFLAGS) -o $@ main.c comment.c utils.c pdjson/pdjson.c
diff --git a/main.c b/main.c
@@ -352,7 +352,7 @@ main(int argc, char *argv[])
/* get json file to the buffer */
http_t* request;
http_status_t status = HTTP_STATUS_PENDING;
- request = http_get("http://theinterlude.live:8000/status-json.xsl", NULL);
+ request = http_get(STATUS_JSON, NULL);
if (request == NULL)
fatal("invalid request");