summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-26 06:43:47 +0200
committerdefault <nobody@localhost>2022-10-26 06:43:47 +0200
commit3acc70b2704f5244fe4ad96b65a3286c42d47f79 (patch)
treed81609d75ef4e9088acd2827d28b52f02d574ea6 /snac.c
parent22b89875aa7c5e7da27a43d31dc294049e5f79e5 (diff)
Fixed a nasty macro expansion bug.
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/snac.c b/snac.c
index d26fd3f..4de34f0 100644
--- a/snac.c
+++ b/snac.c
@@ -30,6 +30,13 @@ int srv_running = 0;
int dbglevel = 0;
+int valid_status(int status)
+/* is this HTTP status valid? */
+{
+ return status >= 200 && status <= 299;
+}
+
+
d_char *tid(int offset)
/* returns a time-based Id */
{