Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
02b29e14
Commit
02b29e14
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: use vlc_strerror_c()
parent
b793c747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/gui/ncurses.c
modules/gui/ncurses.c
+4
-2
No files found.
modules/gui/ncurses.c
View file @
02b29e14
...
...
@@ -40,6 +40,7 @@
#include <wchar.h>
#include <sys/stat.h>
#include <math.h>
#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
...
...
@@ -274,7 +275,8 @@ static void ReadDir(intf_thread_t *intf)
DIR
*
current_dir
=
vlc_opendir
(
sys
->
current_dir
);
if
(
!
current_dir
)
{
msg_Warn
(
intf
,
"cannot open directory `%s' (%m)"
,
sys
->
current_dir
);
msg_Warn
(
intf
,
"cannot open directory `%s' (%s)"
,
sys
->
current_dir
,
vlc_strerror_c
(
errno
));
return
;
}
...
...
@@ -1853,7 +1855,7 @@ static int Open(vlc_object_t *p_this)
/* Stop printing errors to the console */
if
(
!
freopen
(
"/dev/null"
,
"wb"
,
stderr
))
msg_Err
(
intf
,
"Couldn't close stderr (%
m)"
);
msg_Err
(
intf
,
"Couldn't close stderr (%
s)"
,
vlc_strerror_c
(
errno
)
);
ReadDir
(
intf
);
PL_LOCK
;
...
...
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