From: Andreas Gruenbacher Date: Wed, 28 Apr 2010 16:32:46 +0000 (-0600) Subject: utimens: avoid compiler warning X-Git-Tag: v0.1~4203 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=2f2db8cbc28ec95c742c3513bf508d073c714165;p=gnulib.git 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 Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 016a9e054..18c208732 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-27 Andreas Gruenbacher (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 canonicalize-lgpl: avoid compiler warning diff --git a/lib/utimens.c b/lib/utimens.c index bdb5a25ae..35d082de5 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -300,7 +300,7 @@ fdutimens (char const *file, int fd, struct timespec const timespec[2]) { #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 @@ lutimens (char const *file, struct timespec const timespec[2]) #if HAVE_LUTIMES && !HAVE_UTIMENSAT { struct timeval timeval[2]; - struct timeval const *t; + struct timeval *t; int result; if (ts) {