Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3e1d3ebf
Commit
3e1d3ebf
authored
Apr 27, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parseutils: replace setenv() by putenv().
putenv() seems to be more portable.
parent
dcfc12e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
parseutils.c
libavutil/parseutils.c
+2
-1
No files found.
libavutil/parseutils.c
View file @
3e1d3ebf
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment