Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
61f4ca50
...
61f4ca507cc3d95d700bcb924a896bec5139e75f
authored
2007-07-18 17:01:56 +0000
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_url_init): New function.
1 parent
0d780de1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
mailbox/url.c
mailbox/url.c
View file @
61f4ca5
...
...
@@ -546,3 +546,23 @@ mu_url_is_ticket (mu_url_t ticket, mu_url_t url)
/* Guess it matches. */
return
1
;
}
int
mu_url_init
(
mu_url_t
url
,
int
port
,
const
char
*
scheme
)
{
int
status
=
0
;
url
->
_destroy
=
NULL
;
status
=
mu_url_parse
(
url
);
if
(
status
)
return
status
;
if
(
!
mu_url_is_scheme
(
url
,
scheme
))
return
EINVAL
;
if
(
url
->
port
==
0
)
url
->
port
=
port
;
return
status
;
}
...
...
Please
register
or
sign in
to post a comment