aboutsummaryrefslogtreecommitdiffstats
path: root/extension/revtwoway.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/revtwoway.c')
-rw-r--r--extension/revtwoway.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/extension/revtwoway.c b/extension/revtwoway.c
index 6e5bb710..c0d9381a 100644
--- a/extension/revtwoway.c
+++ b/extension/revtwoway.c
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (C) 2012, 2013 the Free Software Foundation, Inc.
+ * Copyright (C) 2012-2014 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -119,8 +119,8 @@ close_two_proc_data(two_way_proc_data_t *proc_data)
return;
}
- free(proc_data->data);
- free(proc_data);
+ gawk_free(proc_data->data);
+ gawk_free(proc_data);
}
/*
@@ -141,6 +141,7 @@ rev2way_get_record(char **out, awk_input_buf_t *iobuf, int *errcode,
* error occurs.
*/
+ (void) errcode; /* silence warnings */
if (out == NULL || iobuf == NULL || iobuf->opaque == NULL)
return EOF;
@@ -195,6 +196,7 @@ rev2way_fwrite(const void *buf, size_t size, size_t count, FILE *fp, void *opaqu
size_t amount, char_count;
char *src, *dest;
+ (void) fp; /* silence warnings */
if (opaque == NULL)
return 0; /* error */
@@ -281,6 +283,7 @@ revtwoway_take_control_of(const char *name, awk_input_buf_t *inbuf, awk_output_b
{
two_way_proc_data_t *proc_data;
+ (void) name; /* silence warnings */
if (inbuf == NULL || outbuf == NULL)
return awk_false;