Code cleanup. Added coveralls badge

This commit is contained in:
Luca Deri
2016-11-27 10:57:42 +01:00
parent 424fbb710c
commit 45ca2ace0b
4 changed files with 1097 additions and 1097 deletions
+1
View File
@@ -2,6 +2,7 @@
# nDPI
[![Build Status](https://travis-ci.org/ntop/nDPI.png?branch=dev)](https://travis-ci.org/ntop/nDPI)
[![Coverage Status](https://coveralls.io/repos/github/ntop/nDPI/badge.svg?branch=dev)](https://coveralls.io/github/ntop/nDPI?branch=dev)
## What is nDPI ?
+3 -3
View File
@@ -1293,7 +1293,7 @@ void automataUnitTest() {
/**
@brief MAIN FUNCTION
**/
**/
int main(int argc, char **argv) {
int i;
@@ -1339,7 +1339,7 @@ int main(int argc, char **argv) {
/**
@brief Timezone
**/
**/
struct timezone {
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
@@ -1348,7 +1348,7 @@ struct timezone {
/**
@brief Set time
**/
**/
int gettimeofday(struct timeval *tv, struct timezone *tz) {
FILETIME ft;
LARGE_INTEGER li;
-1
View File
@@ -74,7 +74,6 @@ void ndpi_free_flow_info_half(struct ndpi_flow_info *flow) {
if(flow->ndpi_flow) { ndpi_free_flow(flow->ndpi_flow); flow->ndpi_flow = NULL; }
if(flow->src_id) { ndpi_free(flow->src_id); flow->src_id = NULL; }
if(flow->dst_id) { ndpi_free(flow->dst_id); flow->dst_id = NULL; }
}
/* ***************************************************** */
+3 -3
View File
@@ -279,7 +279,7 @@ strcasecmp(s1, s2)
int
strncasecmp(s1, s2, n)
const char *s1, *s2;
register size_t n;
register size_t n;
{
if(n != 0) {
register const u_char *cm = charmap,
@@ -1728,7 +1728,7 @@ void ndpi_debug_printf(unsigned int proto, struct ndpi_detection_module_struct *
{
#ifdef NDPI_ENABLE_DEBUG_MESSAGES
va_list args;
#define MAX_STR_LEN 120
#define MAX_STR_LEN 120
char str[MAX_STR_LEN];
va_start(args, format);
vsprintf(str, format, args);
@@ -4170,7 +4170,7 @@ void ndpi_int_reset_protocol(struct ndpi_flow_struct *flow) {
}
}
void NDPI_PROTOCOL_IP_clear(ndpi_ip_addr_t * ip) {
void NDPI_PROTOCOL_IP_clear(ndpi_ip_addr_t * ip) {
memset(ip, 0, sizeof(ndpi_ip_addr_t));
}