Make path const in ndpi_load_protocols_file

This commit is contained in:
Derrick Lyndon Pallas
2019-04-05 18:48:42 +00:00
parent a455e0d8d4
commit bb2f35fe79
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -612,7 +612,7 @@ extern "C" {
* *
*/ */
int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod,
char* path); const char* path);
/** /**
* Get the total number of the supported protocols * Get the total number of the supported protocols
+1 -1
View File
@@ -2900,7 +2900,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod,
udp:139@NETBIOS udp:139@NETBIOS
*/ */
int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, char* path) { int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, const char* path) {
FILE *fd; FILE *fd;
char *buffer, *old_buffer; char *buffer, *old_buffer;
int chunk_len = 512, buffer_len = chunk_len, old_buffer_len; int chunk_len = 512, buffer_len = chunk_len, old_buffer_len;