va_end(ap);
}
+/* Format and report MSG as a fatal error, and exit. */
+void fatal(const char *msg, ...)
+{
+ va_list ap;
+
+ va_start(ap, msg);
+ vlogmsg(0, LOG_CRIT, msg, &ap);
+ va_end(ap);
+ exit(1);
+}
+
/* Fix up a socket FD so that it won't bite us. Returns zero on success, or
* nonzero on error.
*/
struct listen *l = p;
struct client *c;
struct sockaddr_storage ssr, ssl;
- size_t ssz = sizeof(ssr);
+ socklen_t ssz = sizeof(ssr);
int sk;
/* Accept the new connection. */