summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-09-18 11:50:38 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-09-18 11:50:38 +0200
commit21fc4aa4615803896f28bfc8e0009504effdd690 (patch)
treed923bd3819859fb6093abce5f682013da37e8130 /inotail.h
parent6c881352db2c4200b89b3d9700e7353f36ae823f (diff)
inotail.c: Use BUFSIZ and post-increment
For consistency reasons mostly :-)
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/inotail.h b/inotail.h
index dcc948d..f9eabba 100644
--- a/inotail.h
+++ b/inotail.h
@@ -9,7 +9,6 @@
#include <sys/types.h>
-#define BUFFER_SIZE 4096
#define DEFAULT_N_LINES 10 /* Number of items to tail. */
/* tail modes */
@@ -27,7 +26,7 @@ struct file_struct {
/* struct for linked list of buffers/lines in tail_pipe_lines */
struct line_buf {
- char buf[BUFFER_SIZE];
+ char buf[BUFSIZ];
size_t n_lines;
size_t n_bytes;
struct line_buf *next;