Package: hwinfo
Version: 12.9-1
Severity: important
Tags: patch

Our automated buildd log filter[1] detected a problem that will cause
your package to segfault on architectures where the size of a pointer is
greater than the size of an integer, such as ia64.

Here's an untested patch.

[1]http://people.debian.org/~dannf/check-implicit-pointer-functions

diff -urN hwinfo-12.9/src/hd/edd.h 
/space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/edd.h
--- hwinfo-12.9/src/hd/edd.h    2006-03-11 11:16:34.000000000 -0700
+++ /space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/edd.h       
2006-03-11 11:15:12.000000000 -0700
@@ -1,3 +1,6 @@
+#include <sysfs/libsysfs.h>
+#include "hd.h"
+
 void hd_scan_sysfs_edd(hd_data_t *hd_data);
 
 /*
@@ -30,3 +33,5 @@
 static void sysfs_del_link(void *ln);
 static struct sysfs_link *alloc_link(void);
 static void sysfs_del_directory(void *dir);
+struct dlist *sysfs_open_subsystem_list(const char *subsyst);
+struct sysfs_driver *sysfs_get_classdev_driver(struct sysfs_class_device *dev);
diff -urN hwinfo-12.9/src/hd/net.c 
/space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/net.c
--- hwinfo-12.9/src/hd/net.c    2006-01-31 07:57:46.000000000 -0700
+++ /space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/net.c       
2006-03-11 11:12:38.000000000 -0700
@@ -9,6 +9,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
+#include "edd.h"
 
 #define u8 uint8_t
 #define u16 uint16_t
diff -urN hwinfo-12.9/src/hd/usb.c 
/space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/usb.c
--- hwinfo-12.9/src/hd/usb.c    2006-02-27 09:44:06.000000000 -0700
+++ /space/debian/hwinfo-12.9/build-tree/hwinfo-12.9/src/hd/usb.c       
2006-03-11 11:15:50.000000000 -0700
@@ -12,6 +12,7 @@
 #include "hd_int.h"
 #include "hddb.h"
 #include "usb.h"
+#include "edd.h"
 
 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  * usb


-- 
dann frazier <[EMAIL PROTECTED]>
--- Begin Message ---
Function `sysfs_open_subsystem_list' implicitly converted to pointer at 
hd.c:5636
Function `sysfs_get_classdev_driver' implicitly converted to pointer at 
net.c:105
Function `sysfs_open_directory' implicitly converted to pointer at usb.c:570

--- End Message ---

Reply via email to