Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>
  • Loading branch information
jezze committed Nov 3, 2018
1 parent c86d63c commit 071922c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/wc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static unsigned int words;
static unsigned int lines;
static unsigned int whitespace = 1;

static void sum(struct event_header *iheader, struct event_header *oheader, unsigned int count, void *buffer)
static void sum(unsigned int count, void *buffer)
{

char *data = buffer;
Expand Down Expand Up @@ -50,7 +50,7 @@ static unsigned int ondata(struct event_header *iheader, struct event_header *oh

struct event_data *data = event_getdata(iheader);

sum(iheader, oheader, data->count, data + 1);
sum(data->count, data + 1);

return 0;

Expand All @@ -69,7 +69,7 @@ static unsigned int onfile(struct event_header *iheader, struct event_header *oh
file_open(file->descriptor);

while ((count = file_read(file->descriptor, buffer, FUDGE_BSIZE)))
sum(iheader, oheader, count, buffer);
sum(count, buffer);

file_close(file->descriptor);

Expand Down

0 comments on commit 071922c

Please sign in to comment.