From 84f6bcd255d10b593298e0408011e9f03d1ab18c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 22 Aug 2013 21:52:11 +0300 Subject: Clean up some -Wextra compile warnings in extensions. --- extension/revtwoway.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extension/revtwoway.c') diff --git a/extension/revtwoway.c b/extension/revtwoway.c index 6e5bb710..5f490825 100644 --- a/extension/revtwoway.c +++ b/extension/revtwoway.c @@ -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; -- cgit v1.2.3 From b4343b17479151d438d32530cdd2541262e3088e Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Sat, 8 Mar 2014 14:41:00 -0500 Subject: Add memory allocation functions to gawk API. --- extension/revtwoway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/revtwoway.c') diff --git a/extension/revtwoway.c b/extension/revtwoway.c index 5f490825..675e0efa 100644 --- a/extension/revtwoway.c +++ b/extension/revtwoway.c @@ -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); } /* -- cgit v1.2.3 From 69d85d51dfd0f2e3b464585633d270f06fa1e846 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 31 Mar 2014 22:17:13 +0300 Subject: Update copyright years on files changed in 2014. --- extension/revtwoway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extension/revtwoway.c') diff --git a/extension/revtwoway.c b/extension/revtwoway.c index 675e0efa..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. -- cgit v1.2.3