X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/b3d5ed960aa9a43df2b48894867ec3481cee77fc..bab98a3a230bcc2161254e5796ec97e1391b4907:/tl-append.c 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) {