Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
ced3204f
Commit
ced3204f
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Pass domain/type/protocol values through from xpms_add_list() to xpms_add()
parent
a1c760a5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/multisock.c
+2
-2
2 additions, 2 deletions
src/xpdev/multisock.c
with
2 additions
and
2 deletions
src/xpdev/multisock.c
+
2
−
2
View file @
ced3204f
...
...
@@ -7,6 +7,7 @@
#include
<sockwrap.h>
#include
<dirwrap.h>
#include
<multisock.h>
#include
<stdarg.h>
struct
xpms_set
*
xpms_create
(
unsigned
int
retries
,
unsigned
int
wait_secs
,
int
(
*
lprintf
)(
int
level
,
const
char
*
fmt
,
...))
...
...
@@ -191,7 +192,7 @@ BOOL xpms_add_list(struct xpms_set *xpms_set, int domain, int type,
*
(
p
++
)
=
0
;
sscanf
(
p
,
"%hu"
,
&
port
);
}
if
(
xpms_add
(
xpms_set
,
PF_UNSPEC
,
SOCK_STREAM
,
0
,
host_str
,
port
,
prot
,
sock_init
,
bind_init
,
cbdata
))
if
(
xpms_add
(
xpms_set
,
domain
,
type
,
protocol
,
host_str
,
port
,
prot
,
sock_init
,
bind_init
,
cbdata
))
one_good
=
TRUE
;
free
(
host
);
}
...
...
@@ -248,4 +249,3 @@ SOCKET xpms_accept(struct xpms_set *xpms_set, union xp_sockaddr * addr,
return
INVALID_SOCKET
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment