mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-18 20:06:21 +00:00
Introduced UNUSED macro with cast to void in commoh.h for internal use. Used cast to void directly in those files which do not include common.h. Although this change doesn't fix semantic issues with unused function parameters, it does explicitly mark all those places, which might require attention in future.
24 lines
393 B
C
24 lines
393 B
C
#include <stdio.h>
|
|
#include <strophe.h>
|
|
|
|
int main()
|
|
{
|
|
xmpp_ctx_t *ctx;
|
|
char *uuid;
|
|
int rc = 0;
|
|
|
|
ctx = xmpp_ctx_new(NULL, NULL);
|
|
|
|
uuid = xmpp_uuid_gen(ctx);
|
|
if (uuid != NULL) {
|
|
printf("%s\n", uuid);
|
|
xmpp_free(ctx, uuid);
|
|
} else {
|
|
fprintf(stderr, "Couldn't allocate memory.\n");
|
|
rc = 1;
|
|
}
|
|
|
|
xmpp_ctx_free(ctx);
|
|
return rc;
|
|
}
|