From 2f2db8cbc28ec95c742c3513bf508d073c714165 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Wed, 28 Apr 2010 10:32:46 -0600 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ lib/utimens.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) { -- 2.11.0