diff --git a/Makefile b/Makefile index 339e207..cf360c1 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,6 @@ search.o: search.c estruct.h edef.h spawn.o: spawn.c estruct.h edef.h tcap.o: tcap.c estruct.h edef.h termio.o: termio.c estruct.h edef.h -usage.o: usage.c usage.h utf8.o: utf8.c utf8.h vmsvt.o: vmsvt.c estruct.h edef.h vt52.o: vt52.c estruct.h edef.h diff --git a/usage.c b/usage.c deleted file mode 100644 index 3edb798..0000000 --- a/usage.c +++ /dev/null @@ -1,27 +0,0 @@ -/* usage.c -- implements usage.h */ - -/* TODO: align exit return code */ - -#include "usage.h" - -#include -#include -#include - -static void report( const char *prefix, const char *err, va_list params) { - char msg[ 4096] ; - - vsnprintf( msg, sizeof msg, err, params) ; - fprintf( stderr, "%s%s\n", prefix, msg) ; -} - -void die( const char *err, ...) { - va_list params ; - - va_start( params, err) ; - report( "fatal: ", err, params) ; - va_end( params) ; - exit( 128) ; -} - -/* end of usage.c */