X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fx.c;h=18c69a47457bf786aa9899999ed419ea96cdb4dd;hp=3e46abdd03fb0c388c60d5494cce359cdcaf2cc6;hb=ded32923a25488449be27687013845d7fa0e9e5e;hpb=49f7f9e3dc198c3593021bff5514f19090a4834c diff --git a/src/x.c b/src/x.c index 3e46abd..18c69a4 100644 --- a/src/x.c +++ b/src/x.c @@ -19,9 +19,7 @@ * Author: Carl Worth */ -#include "ttt.h" - -#include +#include "x.h" void xasprintf (char **strp, const char *fmt, ...) @@ -135,7 +133,7 @@ xfdopen (int filedes, const char *mode) return ret; } -FILE * +void xfreopen (const char *path, const char *mode, FILE *stream) { FILE *ret; @@ -146,8 +144,6 @@ xfreopen (const char *path, const char *mode, FILE *stream) path, strerror (errno)); exit (1); } - - return ret; } char *