chiark / gitweb /
Properly log fatal errors encountered after program startup.
[yaid] / yaid.h
diff --git a/yaid.h b/yaid.h
index a148743e8315eefb07656df49f5c54a2c9ac0373..eb874cbb1ed9da919554949d862355f748ab4265 100644 (file)
--- a/yaid.h
+++ b/yaid.h
@@ -252,6 +252,9 @@ struct query {
 extern void PRINTF_LIKE(3, 4)
   logmsg(const struct query */*q*/, int /*prio*/, const char */*msg*/, ...);
 
+/* Format and report MSG as a fatal error, and exit. */
+extern void PRINTF_LIKE(1, 2) fatal(const char */*msg*/, ...);
+
 /*----- System-specific connection identification code --------------------*/
 
 /* Find out who is responsible for the connection described in the query Q.