diff options
author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 05:33:27 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-02 00:37:14 +0100 |
commit | f944ec671c3a3e56bf2315d26f7840419bf0a074 (patch) | |
tree | 30b0b2d2e78b768006f4adbff42bd7a61781b63a /lib/frrscript.c | |
parent | lib: add 'script <type> foo' test command (diff) | |
download | frr-f944ec671c3a3e56bf2315d26f7840419bf0a074.tar.xz frr-f944ec671c3a3e56bf2315d26f7840419bf0a074.zip |
lib: make encoder type a typedef
Need to use it for casts regularly.
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrscript.c')
-rw-r--r-- | lib/frrscript.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c index 9b27ca745..246ae25fd 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -30,7 +30,7 @@ struct encoder { char *typename; - int (*encoder)(struct lua_State *, const void *); + encoder_func encoder; }; struct hash *encoder_hash; @@ -82,7 +82,7 @@ int frrscript_lua_call(struct frrscript *fs, ...) } void frrscript_register_type_encoder(const char *typename, - int (*encoder)(lua_State *L, void *)) + encoder_func encoder) { struct encoder e = { .typename = (char *) typename, |