Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Main
Synchronet
Commits
c7df648e
Commit
c7df648e
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix stupid Intel CC warnings.
parent
f8f786bb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/hash/md5.c
+1
-1
1 addition, 1 deletion
src/hash/md5.c
src/smblib/smbdump.c
+1
-1
1 addition, 1 deletion
src/smblib/smbdump.c
src/smblib/smbhash.c
+2
-2
2 additions, 2 deletions
src/smblib/smbhash.c
with
4 additions
and
4 deletions
src/hash/md5.c
+
1
−
1
View file @
c7df648e
...
@@ -275,7 +275,7 @@ BYTE* MD5CALL MD5_hex(BYTE* to, const BYTE digest[MD5_DIGEST_SIZE])
...
@@ -275,7 +275,7 @@ BYTE* MD5CALL MD5_hex(BYTE* to, const BYTE digest[MD5_DIGEST_SIZE])
BYTE
const
*
from
=
digest
;
BYTE
const
*
from
=
digest
;
static
char
*
hexdigits
=
"0123456789abcdef"
;
static
char
*
hexdigits
=
"0123456789abcdef"
;
const
BYTE
*
end
=
digest
+
MD5_DIGEST_SIZE
;
const
BYTE
*
end
=
digest
+
MD5_DIGEST_SIZE
;
char
*
d
=
to
;
char
*
d
=
(
char
*
)
to
;
while
(
from
<
end
)
{
while
(
from
<
end
)
{
*
d
++
=
hexdigits
[(
*
from
>>
4
)];
*
d
++
=
hexdigits
[(
*
from
>>
4
)];
...
...
This diff is collapsed.
Click to expand it.
src/smblib/smbdump.c
+
1
−
1
View file @
c7df648e
...
@@ -50,7 +50,7 @@ static char *binstr(uchar *buf, ushort length)
...
@@ -50,7 +50,7 @@ static char *binstr(uchar *buf, ushort length)
&&
buf
[
i
]
!=
'\r'
&&
buf
[
i
]
!=
'\n'
&&
buf
[
i
]
!=
'\t'
)
&&
buf
[
i
]
!=
'\r'
&&
buf
[
i
]
!=
'\n'
&&
buf
[
i
]
!=
'\t'
)
break
;
break
;
if
(
i
==
length
)
/* not binary */
if
(
i
==
length
)
/* not binary */
return
(
buf
);
return
(
(
char
*
)
buf
);
for
(
i
=
0
;
i
<
length
;
i
++
)
{
for
(
i
=
0
;
i
<
length
;
i
++
)
{
sprintf
(
tmp
,
"%02X "
,
buf
[
i
]);
sprintf
(
tmp
,
"%02X "
,
buf
[
i
]);
strcat
(
str
,
tmp
);
strcat
(
str
,
tmp
);
...
...
This diff is collapsed.
Click to expand it.
src/smblib/smbhash.c
+
2
−
2
View file @
c7df648e
...
@@ -163,7 +163,7 @@ static char* strip_chars(uchar* dst, const uchar* src, uchar* set)
...
@@ -163,7 +163,7 @@ static char* strip_chars(uchar* dst, const uchar* src, uchar* set)
}
}
*
dst
=
0
;
*
dst
=
0
;
return
(
dst
);
return
(
(
char
*
)
dst
);
}
}
/* Allocates and calculates hashes of data (based on flags) */
/* Allocates and calculates hashes of data (based on flags) */
...
@@ -198,7 +198,7 @@ hash_t* SMBCALL smb_hash(ulong msgnum, ulong t, unsigned source, unsigned flags
...
@@ -198,7 +198,7 @@ hash_t* SMBCALL smb_hash(ulong msgnum, ulong t, unsigned source, unsigned flags
hash_t
*
SMBCALL
smb_hashstr
(
ulong
msgnum
,
ulong
t
,
unsigned
source
,
unsigned
flags
hash_t
*
SMBCALL
smb_hashstr
(
ulong
msgnum
,
ulong
t
,
unsigned
source
,
unsigned
flags
,
const
char
*
str
)
,
const
char
*
str
)
{
{
char
*
p
=
(
u
char
*
)
str
;
char
*
p
=
(
char
*
)
str
;
hash_t
*
hash
;
hash_t
*
hash
;
if
(
flags
&
SMB_HASH_PROC_MASK
)
{
/* string pre-processing */
if
(
flags
&
SMB_HASH_PROC_MASK
)
{
/* string pre-processing */
...
...
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