diff options
author | Peter Simons <simons@cryp.to> | 2009-09-18 23:18:09 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-09-18 23:18:09 +0200 |
commit | 7721f05378775c4771c42dc6e1e18f62f406ee1b (patch) | |
tree | d42b9a1f600f0ac43cd0a83ef26e11a814c9cb9f /m4 | |
parent | dfd472ac7244c454a2f7f5c3fbdb085eaaea85f5 (diff) | |
download | autoconf-archive-7721f05378775c4771c42dc6e1e18f62f406ee1b.tar.gz |
AX_CHECK_ALLOCATED_CTIME: don't cast char* to void* when calling free(2)
The cast is redundant and gnulib complains about it, too.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_check_allocated_ctime.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_check_allocated_ctime.m4 b/m4/ax_check_allocated_ctime.m4 index 5995d1c..d693efa 100644 --- a/m4/ax_check_allocated_ctime.m4 +++ b/m4/ax_check_allocated_ctime.m4 @@ -26,7 +26,7 @@ AC_DEFUN([AX_CHECK_ALLOCATED_CTIME],[ int main (int argc, char** argv) { time_t timeVal = time( (time_t*)NULL ); char* pzTime = ctime( &timeVal ); - free( (void*)pzTime ); + free( pzTime ); return 0; }],[ax_cv_allocated_ctime=yes],[ax_cv_allocated_ctime=no],[ax_cv_allocated_ctime=no] ) # end of TRY_RUN]) # end of CACHE_VAL |