From de06a87b4d3c0f3a150d7c4745ec01a6cf69cd87 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Mon, 17 May 2021 16:02:03 +0100 Subject: [PATCH] watcher: TDD :/ --- src/bin/evisum_watcher.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/evisum_watcher.c b/src/bin/evisum_watcher.c index 621f3ce..e4c2237 100644 --- a/src/bin/evisum_watcher.c +++ b/src/bin/evisum_watcher.c @@ -8,8 +8,8 @@ static Eina_List *sensors = NULL; static Eina_List *network_interfaces = NULL; static Eina_List *cores = NULL; -int -main(int argc, char **argv) +static int +test(void) { Eina_List *l; Cpu_Core *core; @@ -82,3 +82,8 @@ main(int argc, char **argv) return 0; } + +int main(int argc, char **argv) +{ + return test(); +}