Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Willers
KWSys
Commits
ccab3808
Commit
ccab3808
authored
4 years ago
by
Ben Boeckel
Committed by
Brad King
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
clang-tidy: address readability-isolate-declaration lints
parent
e798e567
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Base64.c
+4
-1
4 additions, 1 deletion
Base64.c
MD5.c
+4
-2
4 additions, 2 deletions
MD5.c
ProcessUNIX.c
+8
-4
8 additions, 4 deletions
ProcessUNIX.c
with
16 additions
and
7 deletions
Base64.c
+
4
−
1
View file @
ccab3808
...
...
@@ -130,7 +130,10 @@ size_t kwsysBase64_Encode(const unsigned char* input, size_t length,
/* Decode 4 bytes into a 3 byte string. */
int
kwsysBase64_Decode3
(
const
unsigned
char
*
src
,
unsigned
char
*
dest
)
{
unsigned
char
d0
,
d1
,
d2
,
d3
;
unsigned
char
d0
;
unsigned
char
d1
;
unsigned
char
d2
;
unsigned
char
d3
;
d0
=
kwsysBase64DecodeChar
(
src
[
0
]);
d1
=
kwsysBase64DecodeChar
(
src
[
1
]);
...
...
This diff is collapsed.
Click to expand it.
MD5.c
+
4
−
2
View file @
ccab3808
...
...
@@ -171,8 +171,10 @@ typedef struct md5_state_s
static
void
md5_process
(
md5_state_t
*
pms
,
const
md5_byte_t
*
data
/*[64]*/
)
{
md5_word_t
a
=
pms
->
abcd
[
0
],
b
=
pms
->
abcd
[
1
],
c
=
pms
->
abcd
[
2
],
d
=
pms
->
abcd
[
3
];
md5_word_t
a
=
pms
->
abcd
[
0
];
md5_word_t
b
=
pms
->
abcd
[
1
];
md5_word_t
c
=
pms
->
abcd
[
2
];
md5_word_t
d
=
pms
->
abcd
[
3
];
md5_word_t
t
;
#if BYTE_ORDER > 0
/* Define storage only for big-endian CPUs. */
...
...
This diff is collapsed.
Click to expand it.
ProcessUNIX.c
+
8
−
4
View file @
ccab3808
...
...
@@ -1184,7 +1184,7 @@ static int kwsysProcessWaitForPipe(kwsysProcess* cp, char** data, int* length,
/* Make sure the set is empty (it should always be empty here
anyway). */
FD_ZERO
(
&
cp
->
PipeSet
);
FD_ZERO
(
&
cp
->
PipeSet
);
// NOLINT(readability-isolate-declaration)
/* Setup a timeout if required. */
if
(
wd
->
TimeoutTime
.
tv_sec
<
0
)
{
...
...
@@ -1502,7 +1502,7 @@ static int kwsysProcessInitialize(kwsysProcess* cp)
cp
->
PipesLeft
=
0
;
cp
->
CommandsLeft
=
0
;
#if KWSYSPE_USE_SELECT
FD_ZERO
(
&
cp
->
PipeSet
);
FD_ZERO
(
&
cp
->
PipeSet
);
// NOLINT(readability-isolate-declaration)
#endif
cp
->
State
=
kwsysProcess_State_Starting
;
cp
->
Killed
=
0
;
...
...
@@ -1690,7 +1690,8 @@ int decc$set_child_standard_streams(int fd1, int fd2, int fd3);
static
int
kwsysProcessCreate
(
kwsysProcess
*
cp
,
int
prIndex
,
kwsysProcessCreateInformation
*
si
)
{
sigset_t
mask
,
old_mask
;
sigset_t
mask
;
sigset_t
old_mask
;
int
pgidPipe
[
2
];
char
tmp
;
ssize_t
readRes
;
...
...
@@ -2808,7 +2809,10 @@ static void kwsysProcessesSignalHandler(int signum
#endif
)
{
int
i
,
j
,
procStatus
,
old_errno
=
errno
;
int
i
;
int
j
;
int
procStatus
;
int
old_errno
=
errno
;
#if KWSYSPE_USE_SIGINFO
(
void
)
info
;
(
void
)
ucontext
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment