aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-api.c')
-rw-r--r--src/afb-api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-api.c b/src/afb-api.c
index 54ee5945..de603d3e 100644
--- a/src/afb-api.c
+++ b/src/afb-api.c
@@ -29,7 +29,7 @@
* 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;
@@ -60,6 +60,6 @@ int afb_api_is_valid_name(const char *name, int hookable)
}
c = (unsigned char)*++name;
} while(c != 0);
- return !hookable || afb_api_is_hookable(name);
+ return 1;
}