diff options
author | Georg Brandl <georg@python.org> | 2014-10-12 06:45:26 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-12 06:45:26 (GMT) |
commit | bfd7881aa617f10da0225bfeeb34f6981fbc506f (patch) | |
tree | 92ea92865303f96e4f6b0a6ae774b0a09a145092 /Modules | |
parent | c6066ea2bf2ea23633e71350f7338ef3f907e24d (diff) | |
parent | e1a7d9dbf51fa16635d09cf23cc912a97f3e32dc (diff) | |
download | cpython-bfd7881aa617f10da0225bfeeb34f6981fbc506f.zip cpython-bfd7881aa617f10da0225bfeeb34f6981fbc506f.tar.gz cpython-bfd7881aa617f10da0225bfeeb34f6981fbc506f.tar.bz2 |
#22568: merge with 3.4
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 2489ccb..38ba74b 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -6053,25 +6053,25 @@ typedef struct { } \ #define UTIME_TO_UTIMBUF \ - struct utimbuf u[2]; \ + struct utimbuf u; \ struct utimbuf *time; \ if (ut->now) \ time = NULL; \ else { \ - u[0].actime = ut->atime_s; \ - u[0].modtime = ut->mtime_s; \ - time = u; \ + u.actime = ut->atime_s; \ + u.modtime = ut->mtime_s; \ + time = &u; \ } #define UTIME_TO_TIME_T \ time_t timet[2]; \ - struct timet time; \ + time_t *time; \ if (ut->now) \ time = NULL; \ else { \ timet[0] = ut->atime_s; \ timet[1] = ut->mtime_s; \ - time = &timet; \ + time = timet; \ } \ |