Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
921e1aa8
Commit
921e1aa8
authored
Apr 20, 2016
by
charsyam
Browse files
remove unused code
parent
36bddcf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sds.c
View file @
921e1aa8
...
...
@@ -424,14 +424,12 @@ sds sdscatprintf(sds s, const char *fmt, ...) {
*/
sds
sdscatfmt
(
sds
s
,
char
const
*
fmt
,
...)
{
struct
sdshdr
*
sh
=
(
void
*
)
(
s
-
(
sizeof
(
struct
sdshdr
)));
size_t
initlen
=
sdslen
(
s
);
const
char
*
f
=
fmt
;
int
i
;
va_list
ap
;
va_start
(
ap
,
fmt
);
f
=
fmt
;
/* Next format specifier byte to process. */
i
=
initlen
;
/* Position of the next byte to write to dest str. */
i
=
sdslen
(
s
);
/* Position of the next byte to write to dest str. */
while
(
*
f
)
{
char
next
,
*
str
;
int
l
;
...
...
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