OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfc12e
)
parseutils: replace setenv() by putenv().
author
Nicolas George
<nicolas.george@normalesup.org>
Fri, 27 Apr 2012 13:12:52 +0000
(15:12 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Fri, 27 Apr 2012 16:16:04 +0000
(18:16 +0200)
putenv() seems to be more portable.
libavutil/parseutils.c
patch
|
blob
|
history
diff --git
a/libavutil/parseutils.c
b/libavutil/parseutils.c
index
037c4fb
..
de510ca
100644
(file)
--- a/
libavutil/parseutils.c
+++ b/
libavutil/parseutils.c
@@
-789,6
+789,7
@@
int main(void)
int64_t tv;
time_t tvi;
struct tm *tm;
+ static char tzstr[] = "TZ=CET-1";
const char *time_string[] = {
"now",
"12:35:46",
@@
-804,7
+805,7
@@
int main(void)
};
av_log_set_level(AV_LOG_DEBUG);
-
setenv("TZ", "CET-1", 1
);
+
putenv(tzstr
);
printf("(now is 2012-03-17 09:14:13 +0100, local time is UTC+1)\n");
for (i = 0; i < FF_ARRAY_ELEMS(time_string); i++) {
printf("%-24s -> ", time_string[i]);