Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046501
en ru br
ALT Linux repos
S:0.6-alt0_0_git_b3c1f91
5.0: 0.4.2.3-alt1
4.1: 0.4.2.3-alt1
4.0: 0.4.1-alt0.1

Group :: System/Kernel and hardware
RPM: hardinfo

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 01-fix-impldecl.patch
Download


diff --git a/hardinfo/dt_util.c b/hardinfo/dt_util.c
index 2d1b60a..2826b19 100644
--- a/hardinfo/dt_util.c
+++ b/hardinfo/dt_util.c
@@ -25,10 +25,14 @@
 #include <sys/types.h>
 #include <inttypes.h> /* for PRIu64 */
 #include <endian.h>
+#include <ctype.h>
 #include "hardinfo.h"
 #include "dt_util.h"
 #include "appf.h"
 
+/* Prototype */
+int dtr_inh_find(dtr_obj *, char *, int);
+
 static struct {
     char *name; int type;
 } prop_types[] = {
diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c
index 6ba475e..067c3fa 100644
--- a/modules/benchmark/bench_results.c
+++ b/modules/benchmark/bench_results.c
@@ -18,6 +18,12 @@
  *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+/* Need for isalnum()/isdigit() */
+#include <ctype.h>
+
+/* Suppress implicit declaration warnings */
+extern int cpu_procs_cores_threads(int *p, int *c, int *t);
+
 #include <stdlib.h>
 #include <locale.h>
 #include <inttypes.h>
diff --git a/modules/computer.c b/modules/computer.c
index c0302a8..a173973 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -38,6 +38,11 @@
 
 #include "info.h"
 
+/* Suppress implicit declaration warnings */
+extern void scan_languages(OperatingSystem * os);
+extern void scan_boots_real(void);
+extern void scan_groups_do(void);
+
 #define THISORUNK(t) ( (t) ? t : _("(Unknown)") )
 
 /* Callbacks */
diff --git a/modules/computer/boots.c b/modules/computer/boots.c
index 6312299..751cc8f 100644
--- a/modules/computer/boots.c
+++ b/modules/computer/boots.c
@@ -18,9 +18,13 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <ctype.h>
 #include "hardinfo.h"
 #include "computer.h"
 
+/* Suppress implicit declaration warnings */
+extern void scan_languages(OperatingSystem * os);
+
 void
 scan_boots_real(void)
 {
diff --git a/modules/devices.c b/modules/devices.c
index 73c18a9..02bc2da 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -40,6 +40,15 @@
 #include "udisks2_util.h"
 #include "pci_util.h"
 
+/* Suppress implicit declaration warnings */
+extern int cpu_procs_cores_threads(int *p, int *c, int *t);
+extern void __scan_dmi(void);
+extern void __scan_dtree(void);
+extern void __scan_ide_devices(void);
+extern void __scan_scsi_devices(void);
+extern void __scan_input_devices(void);
+extern void __scan_usb(void);
+
 gchar *callback_processors();
 gchar *callback_gpu();
 gchar *callback_monitors();
diff --git a/modules/devices/printers.c b/modules/devices/printers.c
index aefeaed..14ea1dd 100644
--- a/modules/devices/printers.c
+++ b/modules/devices/printers.c
@@ -16,6 +16,9 @@
  *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+/* Need for strptime() */
+#define _XOPEN_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
diff --git a/modules/network.c b/modules/network.c
index 300cc04..8518c12 100644
--- a/modules/network.c
+++ b/modules/network.c
@@ -37,6 +37,11 @@
 
 #include <vendor.h>
 
+/* Need for inet_addr() */
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
 #include "network.h"
 
 /* Callbacks */
@@ -57,6 +62,10 @@ void scan_shares(gboolean reload);
 void scan_arp(gboolean reload);
 void scan_statistics(gboolean reload);
 
+/* Suppress implicit declaration warnings */
+extern void scan_samba(void);
+extern void scan_nfs_shared_directories(void);
+
 static ModuleEntry entries[] = {
     {N_("Interfaces"), "network-interface.png", callback_network, scan_network, MODULE_FLAG_NONE},
     {N_("IP Connections"), "network-connections.png", callback_connections, scan_connections, MODULE_FLAG_NONE},
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin