Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
1866f27c
Commit
1866f27c
authored
Sep 10, 2003
by
Laurent Aimar
Browse files
* ftp : use atoll.
parent
89fc7435
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/access/ftp.c
View file @
1866f27c
...
...
@@ -2,7 +2,7 @@
* ftp.c:
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: ftp.c,v 1.2
0
2003/0
7/31 23:44:49
fenrir Exp $
* $Id: ftp.c,v 1.2
1
2003/0
9/10 21:09:05
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -28,7 +28,6 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
...
...
@@ -335,24 +334,7 @@ static int Open( vlc_object_t *p_this )
goto
exit_error
;
}
#ifdef HAVE_ATOLL
p_access
->
i_filesize
=
atoll
(
psz_arg
+
4
);
#else
{
int64_t
i_size
=
0
;
char
*
psz_parser
=
psz_arg
+
4
;
int
sign
=
1
;
while
(
*
psz_parser
==
' '
||
*
psz_parser
==
'\t'
)
psz_parser
++
;
if
(
*
psz_parser
==
'-'
)
sign
=
-
1
;
while
(
*
psz_parser
>=
'0'
&&
*
psz_parser
<=
'9'
)
{
i_size
=
i_size
*
10
+
*
psz_parser
++
-
'0'
;
}
p_access
->
i_filesize
=
i_size
*
sign
;
}
#endif
msg_Dbg
(
p_input
,
"file size: "
I64Fd
,
p_access
->
i_filesize
);
FREE
(
psz_arg
);
...
...
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