summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
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 */
{