/*
- * Copyright (C) 2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* limitations under the License.
*/
+#if WITH_AFB_HOOK /***********************************************************/
+
#define _GNU_SOURCE
#include <stdlib.h>
{ "common", afb_hook_flags_session_common },
{ "create", afb_hook_flag_session_create },
{ "destroy", afb_hook_flag_session_destroy },
- { "renew", afb_hook_flag_session_renew },
{ "unref", afb_hook_flag_session_unref },
};
{
int borrow = 0, mask = 0, i, v, imask;
size_t s = 0;
- char *result;
+ char *result = NULL;
if (!value)
return strdup("none");
}
borrow = 0;
while (borrow != value) {
- mask = 0;
+ mask = imask = 0;
i = flags.count;
while (i) {
v = flags.flags[--i].value;
}
#endif
+#endif /* WITH_AFB_HOOK *******************************************************/