[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] Avoid an utimes(2) warning
From: |
Andreas Gruenbacher |
Subject: |
[PATCH 2/4] Avoid an utimes(2) warning |
Date: |
Tue, 27 Apr 2010 23:23:59 +0200 |
* lib/utimens.c: On some systems, the timestamp parameter of
utimens(2) is not declared as a const *; avoid warnings in that case.
Signed-off-by: Andreas Gruenbacher <address@hidden>
---
ChangeLog | 3 +++
lib/utimens.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ad3a917..6743cce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-04-27 Andreas Gruenbacher <address@hidden>
+ * lib/utimens.c: On some systems, the timestamp parameter of
+ utimens(2) is not declared as a const *; avoid warnings in that case.
+
* lib/canonicalize-lgpl.c: Avoid an 'empty declaration' / 'extraneous
semicolon' warning with some compilers.
diff --git a/lib/utimens.c b/lib/utimens.c
index bdb5a25..35d082d 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)
{
--
1.7.1.rc1.12.ga601
- [PATCH 2/4] Avoid an utimes(2) warning,
Andreas Gruenbacher <=