aboutsummaryrefslogtreecommitdiff
path: root/runcap.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-07-18 18:10:07 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-07-18 18:10:07 +0300
commitb0c0f377b5d4eb3344f22cd87171f83085eaa994 (patch)
tree9c0bdece282348b0fe5f0a4de3fbbcc0bdffe126 /runcap.h
parent24b9e009c9c2eef1b6d1accb3ac7ccc53c44c0a8 (diff)
downloadruncap-b0c0f377b5d4eb3344f22cd87171f83085eaa994.tar.gz
runcap-b0c0f377b5d4eb3344f22cd87171f83085eaa994.tar.bz2
Minor change
* runcap.h (filecapture) <fc_linestart>: Rename to fc_cur. All uses updated. * runcap.c (filecapture_put): Use fc_cur as current pointer and fc_level as the limit, for consistency. (runcap_init): Initialize fc_cur.
Diffstat (limited to 'runcap.h')
-rw-r--r--runcap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runcap.h b/runcap.h
index 517cd43..c57f2e1 100644
--- a/runcap.h
+++ b/runcap.h
@@ -22,7 +22,7 @@ struct filecapture
size_t fc_size; /* size of the buffer */
off_t fc_leng; /* total length of captured data */
size_t fc_nlines; /* number of captured lines */
- size_t fc_linestart; /* current offset in buffer */
+ size_t fc_cur; /* current offset in buffer */
char * fc_base; /* buffer space */
size_t fc_level; /* number of characters currently in buffer */
void (*fc_linemon) (const char *, size_t, void *);

Return to:

Send suggestions and report system problems to the System administrator.