Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
51e2c635
Commit
51e2c635
authored
Jul 09, 2020
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless return value
parent
24466667
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/util/strutl.c
src/util/strutl.c
+1
-3
src/util/strutl.h
src/util/strutl.h
+1
-1
No files found.
src/util/strutl.c
View file @
51e2c635
...
...
@@ -145,7 +145,7 @@ int hexstring_to_hex_array(uint8_t *hex_array, uint32_t size,
* str must be allocated by caller
* size is the size of the hex_array
*/
int
hex_array_to_hexstring
(
char
*
str
,
const
uint8_t
*
hex_array
,
uint32_t
size
)
void
hex_array_to_hexstring
(
char
*
str
,
const
uint8_t
*
hex_array
,
uint32_t
size
)
{
unsigned
int
i
;
...
...
@@ -153,8 +153,6 @@ int hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size)
{
sprintf
(
str
+
(
i
*
2
),
"%02x"
,
hex_array
[
i
]);
}
return
1
;
}
char
*
str_dup
(
const
char
*
str
)
...
...
src/util/strutl.h
View file @
51e2c635
...
...
@@ -26,7 +26,7 @@
BD_PRIVATE
int
hexstring_to_hex_array
(
uint8_t
*
hex_array
,
uint32_t
size
,
const
char
*
hexstring
);
BD_PRIVATE
int
hex_array_to_hexstring
(
char
*
str
,
const
uint8_t
*
hex_array
,
uint32_t
size
);
BD_PRIVATE
void
hex_array_to_hexstring
(
char
*
str
,
const
uint8_t
*
hex_array
,
uint32_t
size
);
BD_PRIVATE
char
*
str_dup
(
const
char
*
str
)
BD_ATTR_MALLOC
;
BD_PRIVATE
char
*
str_printf
(
const
char
*
fmt
,
...)
BD_ATTR_FORMAT_PRINTF
(
1
,
2
)
BD_ATTR_MALLOC
;
...
...
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