Skip to content

Commit

Permalink
Fix cast warning for sprintf(3), which is treated as an error thus ca…
Browse files Browse the repository at this point in the history
…using compile error in gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

Signed-off-by: Dustin Sallings <[email protected]>
  • Loading branch information
Toru Maesaka authored and dustin committed Jan 10, 2009
1 parent 1a37377 commit af2ec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,7 +2386,7 @@ static inline void process_get_command(conn *c, token_t *tokens, size_t ntokens,
return;
}
*(c->suffixlist + i) = suffix;
sprintf(suffix, " %llu\r\n", ITEM_get_cas(it));
sprintf(suffix, " %llu\r\n", (unsigned long long)ITEM_get_cas(it));
if (add_iov(c, "VALUE ", 6) != 0 ||
add_iov(c, ITEM_key(it), it->nkey) != 0 ||
add_iov(c, ITEM_suffix(it), it->nsuffix - 2) != 0 ||
Expand Down

0 comments on commit af2ec22

Please sign in to comment.