]> git.scottworley.com Git - tl-append/blobdiff - tl-append.c
Encode time in time-logger's format
[tl-append] / tl-append.c
index 21e23a6ae1cacbdf6d6f83f735986d0c3e058966..c2f476ff7e4cdb025e8bfca786f7c9e88abcb3ae 100644 (file)
@@ -1,19 +1,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-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) {