chiark / gitweb /
Give the magic `current time' constant used by `fw_log' a sensible name.
[fwd] / fwd.h
diff --git a/fwd.h b/fwd.h
index ba06144b08e86da7a288a72a087a17920d3db0f8..a900e3151239165e577c2b132f12f22dd0626587 100644 (file)
--- a/fwd.h
+++ b/fwd.h
@@ -271,9 +271,13 @@ extern sel_state *sel;
 extern const char grammar_text[];
 extern const char option_text[];
 
+/* --- Generally useful magic constants --- */
+
+#define NOW ((time_t)-1)
+
 /* --- @fw_log@ --- *
  *
- * Arguments:  @time_t t@ = when the connection occurred or (@-1@)
+ * Arguments:  @time_t t@ = when the connection occurred or (@NOW@)
  *             @const char *fmt@ = format string to fill in
  *             @...@ = other arguments
  *