Mercurial > hg > octave-lyh > gnulib-hg
changeset 13284:e08c8b78a796
utimens: avoid compiler warning
* lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
is not declared as a const *; avoid warnings in that case.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Andreas Gruenbacher <agruen@suse.de> |
---|---|
date | Wed, 28 Apr 2010 10:32:46 -0600 |
parents | 7346ad38d6ae |
children | 7c6a23ddbbd3 |
files | ChangeLog lib/utimens.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-27 Andreas Gruenbacher <agruen@suse.de> (tiny change) + + * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2) + is not declared as a const *; avoid warnings in that case. + 2010-04-28 Eric Blake <eblake@redhat.com> canonicalize-lgpl: avoid compiler warning
--- a/lib/utimens.c +++ b/lib/utimens.c @@ -300,7 +300,7 @@ { #if HAVE_FUTIMESAT || HAVE_WORKING_UTIMES struct timeval timeval[2]; - struct timeval const *t; + struct timeval *t; if (ts) { timeval[0].tv_sec = ts[0].tv_sec; @@ -484,7 +484,7 @@ #if HAVE_LUTIMES && !HAVE_UTIMENSAT { struct timeval timeval[2]; - struct timeval const *t; + struct timeval *t; int result; if (ts) {