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 | |
parent | add478fbe01e68d63309697dfa016e09f12c2603 (diff) |
PR681 - implicit function declaration
-rw-r--r-- | hardinfo2/hardinfo.c | 1 | ||||
-rw-r--r-- | includes/computer.h | 3 | ||||
-rw-r--r-- | includes/devices.h | 8 | ||||
-rw-r--r-- | includes/hardinfo.h | 1 | ||||
-rw-r--r-- | includes/network.h | 4 | ||||
-rw-r--r-- | includes/storage_util.h | 3 | ||||
-rw-r--r-- | includes/udisks2_util.h | 2 | ||||
-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 | ||||
-rw-r--r-- | shell/callbacks.c | 1 | ||||
-rw-r--r-- | shell/report.c | 1 | ||||
-rw-r--r-- | shell/shell.c | 1 |
20 files changed, 36 insertions, 6 deletions
diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c index bf450a5e..2901b7f1 100644 --- a/hardinfo2/hardinfo.c +++ b/hardinfo2/hardinfo.c @@ -26,6 +26,7 @@ #include <vendor.h> #include <binreloc.h> +#include "dmi_util.h" ProgramParameters params = { 0 }; diff --git a/includes/computer.h b/includes/computer.h index 49203054..f8589d77 100644 --- a/includes/computer.h +++ b/includes/computer.h @@ -177,6 +177,9 @@ void scan_users_do(void); extern GHashTable *memlabels; void init_memory_labels(void); void scan_memory_do(void); +void scan_boots_real(void); +void scan_languages(OperatingSystem *os); +void scan_groups_do(void); void kernel_module_icon_init(void); diff --git a/includes/devices.h b/includes/devices.h index 4516d396..e2ab8f7f 100644 --- a/includes/devices.h +++ b/includes/devices.h @@ -66,6 +66,14 @@ void scan_printers_do(void); void scan_sensors_do(void); void sensor_init(void); void sensor_shutdown(void); +void __scan_dtree(void); +void scan_gpu_do(void); +gboolean __scan_udisks2_devices(void); +void __scan_ide_devices(void); +void __scan_scsi_devices(void); +void __scan_input_devices(void); +void __scan_usb(void); +void __scan_dmi(void); extern gchar *battery_list; extern gchar *input_icons; diff --git a/includes/hardinfo.h b/includes/hardinfo.h index ab0b8896..ce3ff529 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -230,5 +230,6 @@ gg_strescape (const gchar *source, #define note_print(note_buff, str) note_printf((note_buff), "%s", str) gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str); gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str); +int cpu_procs_cores_threads(int *p, int *c, int *t); #endif /* __HARDINFO_H__ */ diff --git a/includes/network.h b/includes/network.h index 1e71126e..13d54872 100644 --- a/includes/network.h +++ b/includes/network.h @@ -9,5 +9,7 @@ extern gchar *network_interfaces; extern gchar *network_icons; void scan_net_interfaces(void); +void scan_samba(void); +void scan_nfs_shared_directories(void); -#endif /* __NETWORK_H__ */
\ No newline at end of file +#endif /* __NETWORK_H__ */ diff --git a/includes/storage_util.h b/includes/storage_util.h index 4866d88c..7774e71f 100644 --- a/includes/storage_util.h +++ b/includes/storage_util.h @@ -18,4 +18,5 @@ GSList *get_udisks2_drives_ext(); u2driveext* u2drive_ext(udiskd * udisks_drive_data); void u2driveext_free(u2driveext *u); -void udisks2_shutdown(); +void udisks2_shutdown(void); +void storage_shutdown(void); diff --git a/includes/udisks2_util.h b/includes/udisks2_util.h index 2f65c376..9b26f6dd 100644 --- a/includes/udisks2_util.h +++ b/includes/udisks2_util.h @@ -65,3 +65,5 @@ void udisks2_init(); void udisks2_shutdown(); GSList *get_udisks2_temps(); GSList *get_udisks2_all_drives_info(); +void udiskt_free(udiskt *u); +void udiskd_free(udiskd *u); 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> diff --git a/shell/callbacks.c b/shell/callbacks.c index 1992696d..989f7202 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -26,6 +26,7 @@ #include "shell.h" #include "report.h" #include "syncmanager.h" +#include "uri_handler.h" #include "config.h" diff --git a/shell/report.c b/shell/report.c index 6ccfc7d4..25b73beb 100644 --- a/shell/report.c +++ b/shell/report.c @@ -23,6 +23,7 @@ #include <iconcache.h> #include <hardinfo.h> #include <config.h> +#include "uri_handler.h" static ReportDialog *report_dialog_new(GtkTreeModel * model, GtkWidget * parent); diff --git a/shell/shell.c b/shell/shell.c index dfcd430c..07f208f0 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -32,6 +32,7 @@ #include "iconcache.h" #include "menu.h" #include "stock.h" +#include "uri_handler.h" #include "callbacks.h" |