diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-10-29 20:21:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 20:21:24 +0100 |
commit | 2c2eaf8e79d99afffe9467e253dc4ea2ac41fe36 (patch) | |
tree | 4775dcdd41bf57b941e1d7fbd170c23155495fe5 /src/lib/ndpi_main.c | |
parent | 03fd155ae38b0b3b57f18a25e80abb68b169e326 (diff) |
Rename some functions with more useful/clear names (#2127)
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index a0fb3a1a6..4a42a5112 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4415,15 +4415,15 @@ int ndpi_load_categories_file(struct ndpi_detection_module_struct *ndpi_str, return -1; } - rc = ndpi_load_categories_file2(ndpi_str, fd, user_data); + rc = ndpi_load_categories_file_fd(ndpi_str, fd, user_data); fclose(fd); return rc; } -int ndpi_load_categories_file2(struct ndpi_detection_module_struct *ndpi_str, - FILE *fd, void *user_data) { +int ndpi_load_categories_file_fd(struct ndpi_detection_module_struct *ndpi_str, + FILE *fd, void *user_data) { char buffer[512], *line, *name, *category, *saveptr; int len, num = 0; @@ -4801,14 +4801,14 @@ int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_str, cons return -1; } - rc = ndpi_load_protocols_file2(ndpi_str, fd); + rc = ndpi_load_protocols_file_fd(ndpi_str, fd); fclose(fd); return rc; } -int ndpi_load_protocols_file2(struct ndpi_detection_module_struct *ndpi_str, FILE *fd) { +int ndpi_load_protocols_file_fd(struct ndpi_detection_module_struct *ndpi_str, FILE *fd) { char *buffer, *old_buffer; int chunk_len = 1024, buffer_len = chunk_len, old_buffer_len; int i; |