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
1866f27c
Commit
1866f27c
authored
Sep 10, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ftp : use atoll.
parent
89fc7435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
modules/access/ftp.c
modules/access/ftp.c
+1
-19
No files found.
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/07/31 23:44:49
fenrir Exp $
* $Id: ftp.c,v 1.2
1 2003/09/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