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
Fix bug in session and token removal
[src/app-framework-binder.git]
/
src
/
afb-api.c
diff --git
a/src/afb-api.c
b/src/afb-api.c
index
54ee594
..
897810a
100644
(file)
--- a/
src/afb-api.c
+++ b/
src/afb-api.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 201
6, 2017, 2018
"IoT.bzh"
+ * Copyright (C) 201
5-2020
"IoT.bzh"
* Author "Fulup Ar Foll"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Author "Fulup Ar Foll"
* Author José Bollo <jose.bollo@iot.bzh>
*
@@
-29,7
+29,7
@@
* Checks wether 'name' is a valid API name.
* @return 1 if valid, 0 otherwise
*/
* Checks wether 'name' is a valid API name.
* @return 1 if valid, 0 otherwise
*/
-int afb_api_is_valid_name(const char *name
, int hookable
)
+int afb_api_is_valid_name(const char *name)
{
unsigned char c;
{
unsigned char c;
@@
-60,6
+60,6
@@
int afb_api_is_valid_name(const char *name, int hookable)
}
c = (unsigned char)*++name;
} while(c != 0);
}
c = (unsigned char)*++name;
} while(c != 0);
- return
!hookable || afb_api_is_hookable(name)
;
+ return
1
;
}
}