Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9f10d3fb
Commit
9f10d3fb
authored
Nov 23, 2015
by
Paul Sokolovsky
Browse files
unix/main: Get rid of perror() which uses stdio.
parent
4120f322
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/main.c
View file @
9f10d3fb
...
...
@@ -515,8 +515,7 @@ int main(int argc, char **argv) {
char
*
pathbuf
=
malloc
(
PATH_MAX
);
char
*
basedir
=
realpath
(
argv
[
a
],
pathbuf
);
if
(
basedir
==
NULL
)
{
mp_printf
(
&
mp_stderr_print
,
"%s: can't open file '%s': [Errno %d] "
,
argv
[
0
],
argv
[
a
],
errno
);
perror
(
""
);
mp_printf
(
&
mp_stderr_print
,
"%s: can't open file '%s': [Errno %d] %s
\n
"
,
argv
[
0
],
argv
[
a
],
errno
,
strerror
(
errno
));
// CPython exits with 2 in such case
ret
=
2
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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