From eef9f8e5bb9fdbe22c6301a56f12e315f9ac64d9 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Wed, 23 May 2018 15:35:08 +0000
Subject: [PATCH] Minor fixes

---
 src/network.c       |    4 ++--
 src/box.h           |    5 -----
 src/option_list.c   |    2 +-
 src/http_stream.cpp |    2 +-
 src/darknet.c       |    5 -----
 5 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/src/box.h b/src/box.h
index 9553b12..6063a48 100644
--- a/src/box.h
+++ b/src/box.h
@@ -1,11 +1,6 @@
 #ifndef BOX_H
 #define BOX_H
 
-#ifdef _DEBUG
-#include <stdlib.h> 
-#include <crtdbg.h>  
-#endif
-
 #ifdef YOLODLL_EXPORTS
 #if defined(_MSC_VER)
 #define YOLODLL_API __declspec(dllexport) 
diff --git a/src/darknet.c b/src/darknet.c
index 5407269..ece518c 100644
--- a/src/darknet.c
+++ b/src/darknet.c
@@ -1,8 +1,3 @@
-#ifdef _DEBUG
-#include <stdlib.h> 
-#include <crtdbg.h>  
-#endif
-
 #include <time.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/src/http_stream.cpp b/src/http_stream.cpp
index a2ffc0c..9192f75 100644
--- a/src/http_stream.cpp
+++ b/src/http_stream.cpp
@@ -208,7 +208,7 @@
 		cap = (CvCapture*)new cv::VideoCapture(path);
 	}
 	catch (...) {
-		std::cout << " Error: Web-camera " << path << " can't be opened! \n";
+		std::cout << " Error: video-stream " << path << " can't be opened! \n";
 	}
 	return cap;
 }
diff --git a/src/network.c b/src/network.c
index f992fef..c0676bf 100644
--- a/src/network.c
+++ b/src/network.c
@@ -177,7 +177,7 @@
     net.n = n;
     net.layers = calloc(net.n, sizeof(layer));
     net.seen = calloc(1, sizeof(int));
-    #ifdef GPU
+#ifdef GPU
     net.input_gpu = calloc(1, sizeof(float *));
     net.truth_gpu = calloc(1, sizeof(float *));
 
@@ -185,7 +185,7 @@
 	net.output16_gpu = calloc(1, sizeof(float *));
 	net.max_input16_size = calloc(1, sizeof(size_t));
 	net.max_output16_size = calloc(1, sizeof(size_t));
-    #endif
+#endif
     return net;
 }
 
diff --git a/src/option_list.c b/src/option_list.c
index 9411be3..3e835de 100644
--- a/src/option_list.c
+++ b/src/option_list.c
@@ -12,7 +12,7 @@
     int nu = 0;
     list *options = make_list();
     while((line=fgetl(file)) != 0){
-        ++ nu;
+        ++nu;
         strip(line);
         switch(line[0]){
             case '\0':

--
Gitblit v1.10.0