path: root/inotail.c
diff options
Diffstat (limited to 'inotail.c')
1 files changed, 11 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index 670d9fe..877a96d 100644
--- a/inotail.c
+++ b/inotail.c
@@ -289,7 +289,12 @@ static int tail_pipe_from_begin(struct file_struct *f, unsigned long n_units, co
static int tail_pipe_lines(struct file_struct *f, unsigned long n_lines)
- struct line_buf *first, *last, *tmp;
+ struct line_buf {
+ char buf[BUFSIZ];
+ size_t n_lines;
+ size_t n_bytes;
+ struct line_buf *next;
+ } *first, *last, *tmp;
int rc;
unsigned long total_lines = 0;
const char *p;
@@ -404,7 +409,11 @@ out:
/* TODO: Merge some parts (especially buffer handling) with tail_pipe_lines() */
static int tail_pipe_bytes(struct file_struct *f, unsigned long n_bytes)
- struct char_buf *first, *last, *tmp;
+ struct char_buf {
+ char buf[BUFSIZ];
+ size_t n_bytes;
+ struct char_buf *next;
+ } *first, *last, *tmp;
int rc;
unsigned long total_bytes = 0;
unsigned long i = 0; /* Index into buffer */
tion scripts: add a script to check if Documentation/00-INDEX is sane Docs: change sh -> awk in REPORTING-BUGS Documentation/core-api/device_link: Add initial documentation core-api: remove an unexpected unident ppc/idle: Add documentation for powersave=off Doc: Correct typo, "Introdution" => "Introduction" Documentation/atomic_ops.txt: convert to ReST markup Documentation/local_ops.txt: convert to ReST markup Documentation/assoc_array.txt: convert to ReST markup docs-rst: cleanup the documentation docs-rst: fix media cleandocs target docs-rst: media/Makefile: reorganize the rules docs-rst: media: build SVG from graphviz files docs-rst: replace bayer.png by a SVG image ...
Diffstat (limited to 'Documentation/media/dvb-drivers')
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/media/dvb-drivers/intro.rst b/Documentation/media/dvb-drivers/intro.rst