Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
88638f48
Commit
88638f48
authored
Jun 01, 2007
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing the getBoundPort() function and just making boundPort an extern.
git-svn-id:
https://svn.musicpd.org/mpd/trunk@6445
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
485d1f68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
listen.c
src/listen.c
+1
-6
listen.h
src/listen.h
+2
-2
zeroconf.c
src/zeroconf.c
+1
-1
No files found.
src/listen.c
View file @
88638f48
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
static
int
*
listenSockets
;
static
int
*
listenSockets
;
static
int
numberOfListenSockets
;
static
int
numberOfListenSockets
;
static
int
boundPort
;
int
boundPort
;
static
int
establishListen
(
unsigned
int
port
,
static
int
establishListen
(
unsigned
int
port
,
struct
sockaddr
*
addrp
,
socklen_t
addrlen
)
struct
sockaddr
*
addrp
,
socklen_t
addrlen
)
...
@@ -251,8 +251,3 @@ void getConnections(fd_set * fds)
...
@@ -251,8 +251,3 @@ void getConnections(fd_set * fds)
}
}
}
}
}
}
int
getBoundPort
(
void
)
{
return
boundPort
;
}
src/listen.h
View file @
88638f48
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <unistd.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/select.h>
extern
int
boundPort
;
void
listenOnPort
(
void
);
void
listenOnPort
(
void
);
void
getConnections
(
fd_set
*
fds
);
void
getConnections
(
fd_set
*
fds
);
...
@@ -36,6 +38,4 @@ void freeAllListenSockets(void);
...
@@ -36,6 +38,4 @@ void freeAllListenSockets(void);
/* fdmax should be initialized to something */
/* fdmax should be initialized to something */
void
addListenSocketsToFdSet
(
fd_set
*
fds
,
int
*
fdmax
);
void
addListenSocketsToFdSet
(
fd_set
*
fds
,
int
*
fdmax
);
int
getBoundPort
(
void
);
#endif
#endif
src/zeroconf.c
View file @
88638f48
...
@@ -255,7 +255,7 @@ static void avahiRegisterService(AvahiClient *c)
...
@@ -255,7 +255,7 @@ static void avahiRegisterService(AvahiClient *c)
AVAHI_IF_UNSPEC
,
AVAHI_PROTO_UNSPEC
,
0
,
AVAHI_IF_UNSPEC
,
AVAHI_PROTO_UNSPEC
,
0
,
avahiName
,
SERVICE_TYPE
,
avahiName
,
SERVICE_TYPE
,
NULL
,
NULL
,
NULL
,
NULL
,
getBoundPort
()
,
boundPort
,
NULL
);
NULL
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
ERROR
(
"Avahi: Failed to add service %s: %s
\n
"
,
SERVICE_TYPE
,
avahi_strerror
(
ret
)
);
ERROR
(
"Avahi: Failed to add service %s: %s
\n
"
,
SERVICE_TYPE
,
avahi_strerror
(
ret
)
);
...
...
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