Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update .gitreview for halibut branch
[src/app-framework-binder.git]
/
src
/
afb-hook-flags.c
diff --git
a/src/afb-hook-flags.c
b/src/afb-hook-flags.c
index
a2cb7ea
..
874d21b
100644
(file)
--- a/
src/afb-hook-flags.c
+++ b/
src/afb-hook-flags.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2018 "IoT.bzh"
+ * Copyright (C) 2018
, 2019
"IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-15,6
+15,8
@@
* limitations under the License.
*/
* limitations under the License.
*/
+#if WITH_AFB_HOOK /***********************************************************/
+
#define _GNU_SOURCE
#include <stdlib.h>
#define _GNU_SOURCE
#include <stdlib.h>
@@
-216,7
+218,7
@@
static char *to_text(int value, struct flags flags)
{
int borrow = 0, mask = 0, i, v, imask;
size_t s = 0;
{
int borrow = 0, mask = 0, i, v, imask;
size_t s = 0;
- char *result;
+ char *result
= NULL
;
if (!value)
return strdup("none");
if (!value)
return strdup("none");
@@
-358,3
+360,4
@@
char *afb_hook_flags_legacy_svc_to_text(int value)
}
#endif
}
#endif
+#endif /* WITH_AFB_HOOK *******************************************************/