diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-07-18 18:10:07 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-07-18 18:10:07 +0300 |
commit | b0c0f377b5d4eb3344f22cd87171f83085eaa994 (patch) | |
tree | 9c0bdece282348b0fe5f0a4de3fbbcc0bdffe126 /runcap.h | |
parent | 24b9e009c9c2eef1b6d1accb3ac7ccc53c44c0a8 (diff) | |
download | runcap-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 *); |