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
ea244082
Commit
ea244082
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Match up the function callback so startup->seteuid() can be used without
a wrapper.
parent
e7d57549
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/multisock.c
+1
-1
1 addition, 1 deletion
src/xpdev/multisock.c
src/xpdev/multisock.h
+1
-1
1 addition, 1 deletion
src/xpdev/multisock.h
with
2 additions
and
2 deletions
src/xpdev/multisock.c
+
1
−
1
View file @
ea244082
...
...
@@ -42,7 +42,7 @@ void xpms_destroy(struct xpms_set *xpms_set)
BOOL
xpms_add
(
struct
xpms_set
*
xpms_set
,
int
domain
,
int
type
,
int
protocol
,
const
char
*
addr
,
uint16_t
port
,
const
char
*
prot
,
void
(
*
sock_init
)(
SOCKET
,
void
*
),
void
(
*
bind_init
)(
BOOL
),
void
*
cbdata
)
void
(
*
sock_init
)(
SOCKET
,
void
*
),
int
(
*
bind_init
)(
BOOL
),
void
*
cbdata
)
{
struct
xpms_sockdef
*
new_socks
;
struct
addrinfo
hints
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/multisock.h
+
1
−
1
View file @
ea244082
...
...
@@ -30,7 +30,7 @@ struct xpms_set *xpms_create(unsigned int retries, unsigned int wait_secs,
void
xpms_destroy
(
struct
xpms_set
*
xpms_set
);
BOOL
xpms_add
(
struct
xpms_set
*
xpms_set
,
int
domain
,
int
type
,
int
protocol
,
const
char
*
addr
,
uint16_t
port
,
const
char
*
prot
,
void
(
*
sock_init
)(
SOCKET
,
void
*
),
void
(
*
bind_init
)(
BOOL
),
void
*
cbdata
);
void
(
*
sock_init
)(
SOCKET
,
void
*
),
int
(
*
bind_init
)(
BOOL
),
void
*
cbdata
);
SOCKET
xpms_accept
(
struct
xpms_set
*
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
,
unsigned
int
timeout
,
void
**
cb_data
);
...
...
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