*
*/
-#include <common/compat/string.h>
+#include <common/compat/string.hpp>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
-#include "uuid.h"
+#include "uuid.hpp"
static const lttng_uuid nil_uuid = { 0 };
static bool lttng_uuid_is_init;
{
int i, ret = 0;
- if (uuid_out == NULL) {
- ret = -1;
- goto end;
- }
+ LTTNG_ASSERT(uuid_out);
if (!lttng_uuid_is_init) {
/*
ret = -1;
goto end;
}
- srand(epoch);
+ srand(epoch);
lttng_uuid_is_init = true;
}