Merge pull request #690 from pallas/make-path-const
Make path const in ndpi_load_protocols_file
This commit is contained in:
@@ -612,7 +612,7 @@ extern "C" {
|
||||
*
|
||||
*/
|
||||
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
|
||||
|
||||
+1
-1
@@ -2889,7 +2889,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod,
|
||||
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;
|
||||
char *buffer, *old_buffer;
|
||||
int chunk_len = 512, buffer_len = chunk_len, old_buffer_len;
|
||||
|
||||
Reference in New Issue
Block a user