diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-10 08:06:46 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-10-10 08:06:46 +0000 |
| commit | 541325d00c7078d063ea97333d3c9c64d6b6c7b6 (patch) | |
| tree | 86453b9f547359546d74988b04ab33ec10b4000c /src/libtipidee/tipidee_method_tonum.c | |
| parent | d9f5cb7a28ee79e299e41d3ce325171f01e1a3d7 (diff) | |
| download | tipidee-541325d00c7078d063ea97333d3c9c64d6b6c7b6.tar.gz | |
Add new logging functions, change method_conv for bsearch
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_method_tonum.c')
| -rw-r--r-- | src/libtipidee/tipidee_method_tonum.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libtipidee/tipidee_method_tonum.c b/src/libtipidee/tipidee_method_tonum.c deleted file mode 100644 index 7c88e45..0000000 --- a/src/libtipidee/tipidee_method_tonum.c +++ /dev/null @@ -1,12 +0,0 @@ -/* ISC license. */ - -#include <string.h> - -#include <tipidee/method.h> - -tipidee_method tipidee_method_tonum (char const *s) -{ - tipidee_method_conv const *p = tipidee_method_conv_table ; - for (; p->str ; p++) if (!strcmp(s, p->str)) break ; - return p->num ; -} |
