diff options
author | Jim Meyering <meyering@redhat.com> | 2011-04-10 10:38:50 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-04-11 14:32:55 +0200 |
commit | e6f4c3416721ae0b887fc0fee2f06967ba9a77b6 (patch) | |
tree | 8f8dbcc5b86ff90df0f8de47d91a10d8ffaca503 | |
parent | b2dfc3b5e52bde06d3ef07bcc12e8dfb00f13634 (diff) | |
download | coreutils-e6f4c3416721ae0b887fc0fee2f06967ba9a77b6.tar.xz |
maint: rename variables for clarity...
and to avoid a false-positive "TO to" in new doubled word check.
* src/install.c (change_timestamps): Rename parameters for
readability. Make the comment match the code.
-rw-r--r-- | src/install.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/install.c b/src/install.c index cebb64278..f4169968a 100644 --- a/src/install.c +++ b/src/install.c @@ -813,19 +813,19 @@ change_attributes (char const *name) return ok; } -/* Set the timestamps of file TO to match those of file FROM. +/* Set the timestamps of file DEST to match those of SRC_SB. Return true if successful. */ static bool -change_timestamps (struct stat const *from_sb, char const *to) +change_timestamps (struct stat const *src_sb, char const *dest) { struct timespec timespec[2]; - timespec[0] = get_stat_atime (from_sb); - timespec[1] = get_stat_mtime (from_sb); + timespec[0] = get_stat_atime (src_sb); + timespec[1] = get_stat_mtime (src_sb); - if (utimens (to, timespec)) + if (utimens (dest, timespec)) { - error (0, errno, _("cannot set time stamps for %s"), quote (to)); + error (0, errno, _("cannot set time stamps for %s"), quote (dest)); return false; } return true; |