-
Notifications
You must be signed in to change notification settings - Fork 123
Conversation
and add command.h containing helpful macros and a struct def that is needed later
... to command.c for resolving bookmarks in keynames.
... and remove cpp implementation
... and remove cpp implementation
... and remove cpp implementation
... and remove cpp implementation
... and remove cpp implementation
.. and remove cpp implementation
... and a GET_BASIC_OPTIONS macro for reading all basic basic options at the start of a command
3080055
to
0c19b7c
Compare
b88f9a9
to
e864052
Compare
} | ||
char * tmp = elektraMalloc (elektraStrLen (escapeCode) + elektraStrLen (text) + elektraStrLen (RESET) + 1); | ||
strcpy (tmp, escapeCode); | ||
strcat (tmp, text); |
Check failure
Code scanning / CodeQL
Potentially unsafe use of strcat
|
||
printKsNames (currentMountConfig); | ||
|
||
printf ("MOUNT"); |
Check failure
Code scanning / CodeQL
Missing return statement
|
||
int execRemount (KeySet * options, Key * errorKey) | ||
{ | ||
printf ("RE-MOUNT"); |
Check failure
Code scanning / CodeQL
Missing return statement
|
||
int execUmount (KeySet * options, Key * errorKey) | ||
{ | ||
printf ("UN-MOUNT"); |
Check failure
Code scanning / CodeQL
Missing return statement
return mountSubcommands[i].exec (options, errorKey); | ||
} | ||
} | ||
} |
Check failure
Code scanning / CodeQL
Missing return statement
return result; | ||
} | ||
|
||
int execCmerge (KeySet * options, Key * errorKey) |
Check warning
Code scanning / CodeQL
Poorly documented large function
|
||
int execMount (KeySet * options, Key * errorKey) | ||
{ | ||
int ret = 0; |
Check notice
Code scanning / CodeQL
Unused local variable
elektraKeyToBoolean (GET_OPTION_KEY (options, "verbose"), &verbose); | ||
} | ||
|
||
const char * path = GET_OPTION (options, "path"); |
Check notice
Code scanning / CodeQL
Unused local variable
|
||
void printOptions (elektraLookupFlags options) | ||
{ | ||
// :'<,'>s/\(.*\)/^Iif(options \& \1) printf("\1 "); |
Check notice
Code scanning / CodeQL
Commented-out code
|
||
KeySet * currentMountConfig = getMountConfig (handle, errorKey); | ||
|
||
Key * mountpointKey = keyNew (mountpoint, KEY_END); |
Check notice
Code scanning / CodeQL
Unused local variable
... and (partial) fix #3742
1abbbb2
to
97a7c5c
Compare
783b546
to
32ed763
Compare
... and fix #3742
6b01777
to
4f13f81
Compare
d1590d9
to
af46517
Compare
af46517
to
c13f670
Compare
Issue: #4431
Basics
(added as entry in
doc/news/_preparation_next_release.md
whichcontains
_(my name)_
)Please always add something to the release notes.
(first line should have
module: short statement
syntax)close #X
, are in the commit messages.doc/news/_preparation_next_release.md
scripts/dev/reformat-all
Checklist
(not in the PR description)
Review
Labels