summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/error.c b/error.c
index 72da9f5..c6ea581 100644
--- a/error.c
+++ b/error.c
@@ -246,6 +246,24 @@ internal_error (format, va_alist)
va_end (args);
}
+#if defined (PREFER_STDARG)
+invalid_cmd (const char *format, ...)
+#else
+invalid_cmd (format, va_alist)
+ const char *format;
+ va_dcl
+#endif
+{
+ va_list args;
+
+ SH_VA_START (args, format);
+
+ vfprintf (stderr, format, args);
+ fprintf (stderr, "\n");
+
+ va_end (args);
+}
+
void
#if defined (PREFER_STDARG)
internal_warning (const char *format, ...)