early-access version 2698

This commit is contained in:
pineappleEA
2022-04-24 22:29:35 +02:00
parent c96f949832
commit caa0c2911b
486 changed files with 37806 additions and 14362 deletions

View File

@@ -72,16 +72,22 @@ warn(const char *fmt, ...)
fprintf(stderr, "%s\n", strerror(sverrno));
}
static inline void
vwarnx(const char *fmt, va_list args)
{
if (fmt != NULL)
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
}
static inline void
warnx(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (fmt != NULL)
vfprintf(stderr, fmt, ap);
vwarnx(fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
}
#endif