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
bd371af0
Commit
bd371af0
authored
Aug 26, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZeroconfAvahi: remove unused flag "avahi_running"
This flag is never read.
parent
9d79c72c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
ZeroconfAvahi.cxx
src/zeroconf/ZeroconfAvahi.cxx
+1
-7
No files found.
src/zeroconf/ZeroconfAvahi.cxx
View file @
bd371af0
...
...
@@ -39,7 +39,6 @@
static
constexpr
Domain
avahi_domain
(
"avahi"
);
static
char
*
avahiName
;
static
bool
avahi_running
;
static
MyAvahiPoll
*
avahi_poll
;
static
AvahiClient
*
avahiClient
;
static
AvahiEntryGroup
*
avahiGroup
;
...
...
@@ -85,7 +84,6 @@ static void avahiGroupCallback(AvahiEntryGroup * g,
avahi_strerror
(
avahi_client_errno
(
avahi_entry_group_get_client
(
g
))));
/* Some kind of failure happened while we were registering our services */
avahi_running
=
false
;
break
;
case
AVAHI_ENTRY_GROUP_UNCOMMITED
:
...
...
@@ -142,7 +140,7 @@ static void avahiRegisterService(AvahiClient * c)
return
;
fail:
avahi_running
=
false
;
return
;
}
/* Callback when avahi changes state */
...
...
@@ -185,13 +183,11 @@ static void avahiClientCallback(AvahiClient * c, AvahiClientState state,
FormatWarning
(
avahi_domain
,
"Could not reconnect: %s"
,
avahi_strerror
(
reason
));
avahi_running
=
false
;
}
}
else
{
FormatWarning
(
avahi_domain
,
"Client failure: %s (terminal)"
,
avahi_strerror
(
reason
));
avahi_running
=
false
;
}
break
;
...
...
@@ -239,8 +235,6 @@ AvahiInit(EventLoop &loop, const char *serviceName)
avahiName
=
avahi_strdup
(
serviceName
);
avahi_running
=
true
;
avahi_poll
=
new
MyAvahiPoll
(
loop
);
int
error
;
...
...
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