aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2017-03-13 14:46:22 +0100
committerGitHub <noreply@github.com>2017-03-13 14:46:22 +0100
commit1e014aa95b76e5a73a7a2bef9b729a25c914c735 (patch)
tree40607453631b52838da6bab919103a16b0ab50d8 /example/ndpiReader.c
parent9962eb1f085c07b03c38375e2a688850cf82a8ce (diff)
parente17f62d26149b176d59deb9b7b643b3c57d223bb (diff)
Merge pull request #348 from jsoref/spelling
Spelling fixes
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index e7761e7f7..a631b68be 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -52,7 +52,7 @@
#include "ndpi_util.h"
/** Client parameters **/
-static char *_pcap_file[MAX_NUM_READER_THREADS]; /**< Ingress pcap file/interafaces */
+static char *_pcap_file[MAX_NUM_READER_THREADS]; /**< Ingress pcap file/interfaces */
static FILE *playlist_fp[MAX_NUM_READER_THREADS] = { NULL }; /**< Ingress playlist */
static FILE *results_file = NULL;
static char *results_path = NULL;
@@ -867,7 +867,7 @@ static void printResults(u_int64_t tot_usec) {
if(json_flag) {
#ifdef HAVE_JSON_C
if((json_fp = fopen(_jsonFilePath,"w")) == NULL) {
- printf("Error createing .json file %s\n", _jsonFilePath);
+ printf("Error creating .json file %s\n", _jsonFilePath);
json_flag = 0;
} else {
jObj_main = json_object_new_object();
@@ -1183,7 +1183,7 @@ static void pcap_packet_callback_checked(u_char *args,
/* check for buffer changes */
if(memcmp(packet, packet_checked, header->caplen) != 0)
- printf("INTERNAL ERROR: ingress packet was nodified by nDPI: this should not happen [thread_id=%u, packetId=%lu]\n",
+ printf("INTERNAL ERROR: ingress packet was modified by nDPI: this should not happen [thread_id=%u, packetId=%lu]\n",
thread_id, (unsigned long)ndpi_thread_info[thread_id].workflow->stats.raw_packet_count);
free(packet_checked);
}