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
6de8303d
Commit
6de8303d
authored
Aug 11, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: use C++11 initializers
parent
33b41145
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Client.hxx
src/client/Client.hxx
+3
-3
ClientNew.cxx
src/client/ClientNew.cxx
+1
-3
No files found.
src/client/Client.hxx
View file @
6de8303d
...
...
@@ -64,11 +64,11 @@ public:
const
unsigned
int
num
;
/* client number */
/** is this client waiting for an "idle" response? */
bool
idle_waiting
;
bool
idle_waiting
=
false
;
/** idle flags pending on this client, to be sent as soon as
the client enters "idle" */
unsigned
idle_flags
;
unsigned
idle_flags
=
0
;
/** idle flags that the client wants to receive */
unsigned
idle_subscriptions
;
...
...
@@ -87,7 +87,7 @@ public:
* The number of subscriptions in #subscriptions. Used to
* limit the number of subscriptions.
*/
unsigned
num_subscriptions
;
unsigned
num_subscriptions
=
0
;
/**
* A list of messages this client has received.
...
...
src/client/ClientNew.cxx
View file @
6de8303d
...
...
@@ -49,9 +49,7 @@ Client::Client(EventLoop &_loop, Partition &_partition,
partition
(
&
_partition
),
permission
(
getDefaultPermissions
()),
uid
(
_uid
),
num
(
_num
),
idle_waiting
(
false
),
idle_flags
(
0
),
num_subscriptions
(
0
)
num
(
_num
)
{
TimeoutMonitor
::
Schedule
(
client_timeout
);
}
...
...
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