Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
40b705ad
Commit
40b705ad
authored
Apr 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove invariable (last) parameter of httpd_UrlNewPrivate()
parent
a053ede0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
src/network/httpd.c
src/network/httpd.c
+9
-13
No files found.
src/network/httpd.c
View file @
40b705ad
...
...
@@ -1198,25 +1198,21 @@ void httpd_HostDelete( httpd_host_t *host )
/* register a new url */
static
httpd_url_t
*
httpd_UrlNewPrivate
(
httpd_host_t
*
host
,
const
char
*
psz_url
,
const
char
*
psz_user
,
const
char
*
psz_password
,
const
vlc_acl_t
*
p_acl
,
bool
b_check
)
const
vlc_acl_t
*
p_acl
)
{
httpd_url_t
*
url
;
int
i
;
assert
(
psz_url
!=
NULL
);
vlc_mutex_lock
(
&
host
->
lock
);
if
(
b_check
)
for
(
int
i
=
0
;
i
<
host
->
i_url
;
i
++
)
{
for
(
i
=
0
;
i
<
host
->
i_url
;
i
++
)
if
(
!
strcmp
(
psz_url
,
host
->
url
[
i
]
->
psz_url
)
)
{
if
(
!
strcmp
(
psz_url
,
host
->
url
[
i
]
->
psz_url
)
)
{
msg_Warn
(
host
,
"cannot add '%s' (url already defined)"
,
psz_url
);
vlc_mutex_unlock
(
&
host
->
lock
);
return
NULL
;
}
msg_Warn
(
host
,
"cannot add '%s' (url already defined)"
,
psz_url
);
vlc_mutex_unlock
(
&
host
->
lock
);
return
NULL
;
}
}
...
...
@@ -1228,7 +1224,7 @@ static httpd_url_t *httpd_UrlNewPrivate( httpd_host_t *host, const char *psz_url
url
->
psz_user
=
strdup
(
psz_user
?
psz_user
:
""
);
url
->
psz_password
=
strdup
(
psz_password
?
psz_password
:
""
);
url
->
p_acl
=
ACL_Duplicate
(
host
,
p_acl
);
for
(
i
=
0
;
i
<
HTTPD_MSG_MAX
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
HTTPD_MSG_MAX
;
i
++
)
{
url
->
catch
[
i
].
cb
=
NULL
;
url
->
catch
[
i
].
p_sys
=
NULL
;
...
...
@@ -1246,7 +1242,7 @@ httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, const char *psz_url,
const
vlc_acl_t
*
p_acl
)
{
return
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
psz_password
,
p_acl
,
true
);
psz_password
,
p_acl
);
}
/* register callback on a url */
...
...
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