diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-15 02:28:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-15 02:28:56 +0100 |
commit | 389cca4b9ed07be8d873b2aae01f3eb0c3474f7c (patch) | |
tree | 4ec81672d1bd6b18578576b876659d6a257ca5ae /archival/bbunzip.c | |
parent | a307af1af62c51e33e2801d74dbc35560af0fc0e (diff) |
some non-gnu compilers can't have non-const struct initializers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r-- | archival/bbunzip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index f81aab81f..22a0fd189 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c @@ -105,10 +105,12 @@ int FAST_FUNC bbunpack(char **argv, if (status >= 0) { /* TODO: restore other things? */ if (info.mtime) { - struct timeval times = {.tv_sec = info.mtime, - .tv_usec = 0}; + struct timeval times; + + times.tv_sec = info.mtime; + times.tv_usec = 0; /* Note: we closed it first. - * On some systems calling utime + * On some systems calling utimes * then closing resets the mtime * back to current time. */ utimes(new_name, ×); /* ignoring errors */ |