opnsense-ports/shells/ast-ksh/files/patch-src_cmd_proto_proto.c
Franco Fichtner 5741aed66c */*: sync with upstream
Taken from: HardenedBSD
2019-06-03 03:57:40 +02:00

18 lines
368 B
C

--- src/cmd/proto/proto.c.orig 2017-11-30 22:35:04 UTC
+++ src/cmd/proto/proto.c
@@ -396,6 +396,15 @@ proto(char* file, char* license, char* o
#if !PROTO_STANDALONE
#undef error
+void
+error( int xit, const char *msg, ... )
+{
+ va_list ap;
+ va_start( ap, msg );
+ vfprintf( stderr, msg, ap );
+ va_end( ap );
+ exit( xit );
+}
#endif
typedef struct Sufcom_s