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/devices | |
| parent | add478fbe01e68d63309697dfa016e09f12c2603 (diff) | |
PR681 - implicit function declaration
Diffstat (limited to 'modules/devices')
| -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 | 
5 files changed, 7 insertions, 4 deletions
| 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> | 
