diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-09-18 11:50:38 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-09-18 11:50:38 +0200 |
commit | 21fc4aa4615803896f28bfc8e0009504effdd690 (patch) | |
tree | d923bd3819859fb6093abce5f682013da37e8130 /inotail.h | |
parent | 6c881352db2c4200b89b3d9700e7353f36ae823f (diff) |
inotail.c: Use BUFSIZ and post-increment
For consistency reasons mostly :-)
Diffstat (limited to 'inotail.h')
-rw-r--r-- | inotail.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |