utimens: avoid compiler warning
authorAndreas Gruenbacher <agruen@suse.de>
Wed, 28 Apr 2010 16:32:46 +0000 (10:32 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 28 Apr 2010 16:32:46 +0000 (10:32 -0600)
* 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>
ChangeLog
lib/utimens.c

index 016a9e0..18c2087 100644 (file)
--- 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
index bdb5a25..35d082d 100644 (file)
@@ -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)
       {