X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/d753115a12c9368e24546c04f992740799da0257..d522116b5fdc09e3f83fe4f88515dec52a3e0462:/tl-append.c?ds=inline diff --git a/tl-append.c b/tl-append.c index 21e23a6..c2f476f 100644 --- a/tl-append.c +++ b/tl-append.c @@ -1,19 +1,9 @@ #include #include -const char *FILENAME = "tl.log"; -const size_t BUF_SIZE = 1024; - -static void die(const char *message) { - fputs(message, stderr); - fputc('\n', stderr); - exit(1); -} +#include "common.h" -static void die_err(const char *message) { - perror(message); - exit(1); -} +const size_t BUF_SIZE = 1024; static void read_line(char *buf) { if (fgets(buf, BUF_SIZE, stdin) == NULL) {