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
ef8ea6e3
Commit
ef8ea6e3
authored
Apr 30, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/ftp.c, modules/access/http.c: slightly changed atoll() replacement.
parent
87d40a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
22 deletions
+10
-22
modules/access/ftp.c
modules/access/ftp.c
+5
-9
modules/access/http.c
modules/access/http.c
+5
-13
No files found.
modules/access/ftp.c
View file @
ef8ea6e3
...
...
@@ -2,7 +2,7 @@
* ftp.c:
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ftp.c,v 1.1
5 2003/04/30 04:13:12 hartma
n Exp $
* $Id: ftp.c,v 1.1
6 2003/04/30 09:11:13 gbazi
n Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -340,18 +340,14 @@ static int Open( vlc_object_t *p_this )
{
int64_t
i_size
=
0
;
char
*
psz_parser
=
psz_arg
+
4
;
int
sign
=
1
;
int
sign
=
1
;
while
(
*
psz_parser
==
' '
||
*
psz_parser
==
'\t'
)
psz_parser
++
;
if
(
*
psz_parser
==
'-'
)
sign
=
-
1
;
while
(
*
psz_parser
!=
'\0'
)
if
(
*
psz_parser
==
'-'
)
sign
=
-
1
;
while
(
*
psz_parser
>=
'0'
&&
*
psz_parser
<=
'9'
)
{
if
(
*
psz_parser
>=
'0'
&&
*
psz_parser
<=
'9'
)
i_size
=
i_size
*
10
+
*
psz_parser
++
-
'0'
;
else
psz_parser
++
;
i_size
=
i_size
*
10
+
*
psz_parser
++
-
'0'
;
}
p_access
->
i_filesize
=
i_size
*
sign
;
}
...
...
modules/access/http.c
View file @
ef8ea6e3
...
...
@@ -2,7 +2,7 @@
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: http.c,v 1.3
3 2003/04/30 04:13:12 hartma
n Exp $
* $Id: http.c,v 1.3
4 2003/04/30 09:11:13 gbazi
n Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -307,19 +307,11 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell )
i_size
=
i_tell
+
atoll
(
psz_value
);
#else
int
sign
=
1
;
psz_parser
=
psz_value
;
while
(
*
psz_value
==
' '
||
*
psz_value
==
'\t'
)
psz_value
++
;
if
(
*
psz_value
==
'-'
)
sign
=
-
1
;
while
(
*
psz_value
!=
'\0'
)
if
(
*
psz_value
==
'-'
)
sign
=
-
1
;
while
(
*
psz_value
>=
'0'
&&
*
psz_value
<=
'9'
)
{
if
(
*
psz_value
>=
'0'
&&
*
psz_value
<=
'9'
)
i_size
=
i_size
*
10
+
*
psz_value
++
-
'0'
;
else
psz_value
++
;
i_size
=
i_size
*
10
+
*
psz_value
++
-
'0'
;
}
i_size
=
i_tell
+
(
i_size
*
sign
);
#endif
...
...
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