properly rename internal [v]snprintf() functions
Otherwise it clashes when we want to re-introduce the `xmpp_` prefix'ed versions. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -35,7 +35,7 @@ void strophe_free(const xmpp_ctx_t *ctx, void *p)
|
||||
}
|
||||
|
||||
#ifndef HAVE_SNPRINTF
|
||||
int xmpp_snprintf(char *str, size_t count, const char *fmt, ...)
|
||||
int strophe_snprintf(char *str, size_t count, const char *fmt, ...)
|
||||
{
|
||||
(void)str;
|
||||
(void)count;
|
||||
|
||||
@@ -37,7 +37,7 @@ int main(void)
|
||||
|
||||
for (x = 0; fp_fmt[x] != NULL; x++)
|
||||
for (y = 0; fp_nums[y] != 0; y++) {
|
||||
xmpp_snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
|
||||
strophe_snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
|
||||
sprintf(buf2, fp_fmt[x], fp_nums[y]);
|
||||
if (strcmp(buf1, buf2)) {
|
||||
printf("xmpp_snprintf doesn't match Format: "
|
||||
@@ -50,7 +50,7 @@ int main(void)
|
||||
|
||||
for (x = 0; int_fmt[x] != NULL; x++)
|
||||
for (y = 0; int_nums[y] != 0; y++) {
|
||||
xmpp_snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
|
||||
strophe_snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
|
||||
sprintf(buf2, int_fmt[x], int_nums[y]);
|
||||
if (strcmp(buf1, buf2)) {
|
||||
printf("xmpp_snprintf doesn't match Format: "
|
||||
|
||||
Reference in New Issue
Block a user