From 646fbbc4f6e4fa3df62a5a6e7e00b40c0e13d8e9 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Wed, 1 May 2013 14:00:16 +0800 Subject: [PATCH] remove need for usage --- Makefile | 6 +++--- wrapper.c | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 46faee4..2bedba6 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,13 @@ SRC=basic.c bind.c buffer.c crypt.c display.c eval.c exec.c \ file.c fileio.c input.c isearch.c line.c lock.c main.c \ pklock.c posix.c random.c region.c search.c spawn.c tcap.c \ window.c word.c names.c globals.c version.c \ - usage.c wrapper.c utf8.c + wrapper.c utf8.c OBJ=basic.o bind.o buffer.o crypt.o display.o eval.o exec.o \ file.o fileio.o input.o isearch.o line.o lock.o main.o \ pklock.o posix.o random.o region.o search.o spawn.o tcap.o \ window.o word.o names.o globals.o version.o \ - usage.o wrapper.o utf8.o + wrapper.o utf8.o HDR=ebind.h edef.h efunc.h epath.h estruct.h evar.h util.h version.h @@ -161,7 +161,7 @@ vmsvt.o: vmsvt.c estruct.h edef.h vt52.o: vt52.c estruct.h edef.h window.o: window.c estruct.h edef.h word.o: word.c estruct.h edef.h -wrapper.o: wrapper.c wrapper.h usage.h +wrapper.o: wrapper.c wrapper.h # DEPENDENCIES MUST END AT END OF FILE # IF YOU PUT STUFF HERE IT WILL GO AWAY diff --git a/wrapper.c b/wrapper.c index deedf08..c838a49 100644 --- a/wrapper.c +++ b/wrapper.c @@ -2,11 +2,15 @@ #include "wrapper.h" -#include "usage.h" - +#include #include #include +static void die( const char *err) { + fprintf( stderr, "fatal: %s\n", err) ; + exit( EXIT_FAILURE) ; +} + /* Function copyright: git */ void xmkstemp( char *template) { int fd ;