From 6b9cdbbfd68f3dfcedd453f4e57c816abe1bbb56 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 15 Nov 2008 08:42:36 +0000 Subject: [PATCH] globalise internal_verrorf() --- main.c | 6 ++---- sh.h | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index c8265a5..6dc4eb3 100644 --- a/main.c +++ b/main.c @@ -13,7 +13,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.111 2008/11/15 07:35:24 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.112 2008/11/15 08:42:35 tg Exp $"); extern char **environ; @@ -855,9 +855,7 @@ bi_errorf(const char *fmt, ...) } /* Called when something that shouldn't happen does */ -static void internal_verrorf(const char *, va_list) - __attribute__((format (printf, 1, 0))); -static void +void internal_verrorf(const char *fmt, va_list ap) { shf_fprintf(shl_out, "internal error: "); diff --git a/sh.h b/sh.h index c9d4539..a6d277c 100644 --- a/sh.h +++ b/sh.h @@ -103,7 +103,7 @@ #define __SCCSID(x) __IDSTRING(sccsid,x) #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.259 2008/11/15 08:03:24 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.260 2008/11/15 08:42:36 tg Exp $"); #endif #define MKSH_VERSION "R36 2008/11/11" @@ -1410,6 +1410,8 @@ void bi_errorf(const char *, ...) __attribute__((format (printf, 1, 2))); #define errorfz() errorf("\1") #define bi_errorfz() bi_errorf("\1") +void internal_verrorf(const char *, va_list) + __attribute__((format (printf, 1, 0))); void internal_errorf(const char *, ...) __attribute__((noreturn)) __attribute__((format (printf, 1, 2)));