tfm: Get rid of unnecessary global header tfm.h 28/223028/10
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 17 Mar 2020 04:44:33 +0000 (13:44 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 18 Mar 2020 08:32:58 +0000 (17:32 +0900)
Global tfm context is no more used, so global header tfm.h is neither
required. This just removes unnecessary header, thus has no functional
changes.

Change-Id: I69daaaa255dea57676e04bdb0c8145cf4049ed87
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/interface.c
src/main.c
src/net.c
src/thor.c
src/thor.h [moved from src/tfm.h with 89% similarity]

index de6f559..69d2084 100644 (file)
@@ -21,7 +21,6 @@
 #include <pthread.h>
 #include <sys/queue.h>
 
-#include "tfm.h"
 #include "interface.h"
 
 struct tfm_interface_context {
index 141f165..0281c30 100644 (file)
@@ -20,7 +20,7 @@
 #include <unistd.h>
 #include <sys/wait.h>
 
-#include "tfm.h"
+#include "thor.h"
 #include "dfu.h"
 #include "interface.h"
 
index 9de6741..6cd8587 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+#include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -23,7 +24,6 @@
 #include <sys/wait.h>
 #include <arpa/inet.h>
 
-#include "tfm.h"
 #include "interface.h"
 
 #define DEFAULT_PORT           23456
index 426dd40..6cb6984 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <sys/reboot.h>
 
-#include "tfm.h"
 #include "dfu.h"
 #include "interface.h"
 #include "thor-proto.h"
similarity index 89%
rename from src/tfm.h
rename to src/thor.h
index 7d18f4e..7a88006 100644 (file)
--- a/src/tfm.h
  * limitations under the License.
  */
 
-#ifndef __TFM_H
-#define __TFM_H
-#include <string.h>
-#include <pthread.h>
-#include <sys/queue.h>
+#ifndef __THOR_H
+#define __THOR_H
 
 #include "dfu.h"
 #include "interface.h"