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
4c27898c
Commit
4c27898c
authored
Feb 28, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{Other,Database}Commands: contract declaration and assignment
parent
e9a85aa4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
DatabaseCommands.cxx
src/command/DatabaseCommands.cxx
+3
-6
OtherCommands.cxx
src/command/OtherCommands.cxx
+3
-6
No files found.
src/command/DatabaseCommands.cxx
View file @
4c27898c
...
@@ -34,13 +34,10 @@
...
@@ -34,13 +34,10 @@
CommandResult
CommandResult
handle_lsinfo2
(
Client
&
client
,
int
argc
,
char
*
argv
[])
handle_lsinfo2
(
Client
&
client
,
int
argc
,
char
*
argv
[])
{
{
const
char
*
uri
;
const
char
*
const
uri
=
argc
==
2
?
argv
[
1
]
if
(
argc
==
2
)
uri
=
argv
[
1
];
else
/* default is root directory */
/* default is root directory */
uri
=
""
;
:
""
;
const
DatabaseSelection
selection
(
uri
,
false
);
const
DatabaseSelection
selection
(
uri
,
false
);
...
...
src/command/OtherCommands.cxx
View file @
4c27898c
...
@@ -121,13 +121,10 @@ static constexpr tag_handler print_tag_handler = {
...
@@ -121,13 +121,10 @@ static constexpr tag_handler print_tag_handler = {
CommandResult
CommandResult
handle_lsinfo
(
Client
&
client
,
int
argc
,
char
*
argv
[])
handle_lsinfo
(
Client
&
client
,
int
argc
,
char
*
argv
[])
{
{
const
char
*
uri
;
const
char
*
const
uri
=
argc
==
2
?
argv
[
1
]
if
(
argc
==
2
)
uri
=
argv
[
1
];
else
/* default is root directory */
/* default is root directory */
uri
=
""
;
:
""
;
if
(
memcmp
(
uri
,
"file:///"
,
8
)
==
0
)
{
if
(
memcmp
(
uri
,
"file:///"
,
8
)
==
0
)
{
/* print information about an arbitrary local file */
/* print information about an arbitrary local file */
...
...
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