diff options
author | bigbear <ns@bigbear.dk> | 2024-02-08 02:39:51 +0100 |
---|---|---|
committer | bigbear <ns@bigbear.dk> | 2024-02-08 19:52:53 +0100 |
commit | 755c300d246c872c406f3a7e123d4cdd0d7c1f17 (patch) | |
tree | 12a01f8930767c8eda79bde32463987bed3fff8f /modules | |
parent | add478fbe01e68d63309697dfa016e09f12c2603 (diff) |
PR681 - implicit function declaration
Diffstat (limited to 'modules')
-rw-r--r-- | modules/benchmark.c | 1 | ||||
-rw-r--r-- | modules/benchmark/bench_results.c | 1 | ||||
-rw-r--r-- | modules/benchmark/sysbench.c | 1 | ||||
-rw-r--r-- | modules/computer/boots.c | 2 | ||||
-rw-r--r-- | modules/devices.c | 1 | ||||
-rw-r--r-- | modules/devices/dmi.c | 2 | ||||
-rw-r--r-- | modules/devices/gpu.c | 2 | ||||
-rw-r--r-- | modules/devices/inputdevices.c | 1 | ||||
-rw-r--r-- | modules/devices/pci.c | 2 | ||||
-rw-r--r-- | modules/devices/printers.c | 4 |
10 files changed, 13 insertions, 4 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c index 312ef509..78dd32bb 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -31,6 +31,7 @@ #include "appf.h" #include "benchmark.h" +#include "cpu_util.h" #include "benchmark/bench_results.c" diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c index e5212c71..28ce657d 100644 --- a/modules/benchmark/bench_results.c +++ b/modules/benchmark/bench_results.c @@ -22,6 +22,7 @@ #include <locale.h> #include <inttypes.h> #include <json-glib/json-glib.h> +#include "nice_name.h" /* in dmi_memory.c */ uint64_t memory_devices_get_system_memory_MiB(); diff --git a/modules/benchmark/sysbench.c b/modules/benchmark/sysbench.c index 70db03e6..97a05229 100644 --- a/modules/benchmark/sysbench.c +++ b/modules/benchmark/sysbench.c @@ -19,6 +19,7 @@ #include "hardinfo.h" #include "benchmark.h" +#include "cpu_util.h" #define STATMSG "Performing Alexey Kopytov's sysbench memory benchmark" diff --git a/modules/computer/boots.c b/modules/computer/boots.c index 5621e4e9..52c122e4 100644 --- a/modules/computer/boots.c +++ b/modules/computer/boots.c @@ -21,6 +21,8 @@ #include "hardinfo.h" #include "computer.h" +extern void scan_os(gboolean reload); + void scan_boots_real(void) { diff --git a/modules/devices.c b/modules/devices.c index a44cdb0c..9aa88187 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -39,6 +39,7 @@ #include "devices.h" #include "dt_util.h" #include "udisks2_util.h" +#include "storage_util.h" #include "pci_util.h" gchar *callback_processors(); diff --git a/modules/devices/dmi.c b/modules/devices/dmi.c index c1915638..263d6944 100644 --- a/modules/devices/dmi.c +++ b/modules/devices/dmi.c @@ -149,7 +149,7 @@ gboolean dmi_get_info(void) return dmi_succeeded; } -void __scan_dmi() +void __scan_dmi(void) { gboolean dmi_ok; diff --git a/modules/devices/gpu.c b/modules/devices/gpu.c index 16267536..96520161 100644 --- a/modules/devices/gpu.c +++ b/modules/devices/gpu.c @@ -24,8 +24,6 @@ #include "devices.h" #include "gpu_util.h" -void scan_gpu_do(void); - gchar *gpu_list = NULL; gchar *gpu_summary = NULL; diff --git a/modules/devices/inputdevices.c b/modules/devices/inputdevices.c index a4b4ac73..54828b79 100644 --- a/modules/devices/inputdevices.c +++ b/modules/devices/inputdevices.c @@ -20,6 +20,7 @@ #include "hardinfo.h" #include "devices.h" +#include "usb_util.h" gchar *input_icons = NULL; diff --git a/modules/devices/pci.c b/modules/devices/pci.c index be816c46..c7114672 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -177,7 +177,7 @@ void scan_pci_do(void) { gchar *pci_icons = g_strdup(""); pcid_list list = pci_get_device_list(0,0); - list = g_slist_sort(list, pcid_cmp_by_addy); + list = g_slist_sort(list, (GCompareFunc)pcid_cmp_by_addy); GSList *l = list; int c = 0; diff --git a/modules/devices/printers.c b/modules/devices/printers.c index 655d73c5..25a6edd7 100644 --- a/modules/devices/printers.c +++ b/modules/devices/printers.c @@ -16,6 +16,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef _XOPEN_SOURCE + #define _XOPEN_SOURCE +#endif + #include <stdio.h> #include <stdlib.h> #include <time.h> |