summaryrefslogtreecommitdiff
path: root/extras/chassis_id/chassis_id.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-05 02:36:54 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:24:19 -0700
commit9172c95c77e8f1377b6c8becc84995e6e28a61eb (patch)
treeecc549e85a5669c5180885ccd7e9aeb84e0ce027 /extras/chassis_id/chassis_id.h
parent61599bdd06b059e7a5792b0417828d0a87541038 (diff)
[PATCH] chassis_id: clean compilation and fix bad function parameter passing
Adding prototypes for functions resulted in an error, cause: table_find_disk(disk_snum, &chassis_num, &slot_num); is called but the function is defined as: int table_find_disk(char *serialnumber , int *host_num, int *chassis_num, int *slot_num) which can obviously not work correctly. Using popen() is not klibc compatible, so skip the compilation if a klibc compile is requested.
Diffstat (limited to 'extras/chassis_id/chassis_id.h')
-rw-r--r--extras/chassis_id/chassis_id.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/chassis_id/chassis_id.h b/extras/chassis_id/chassis_id.h
index 9937e3dfac..1463bd22c7 100644
--- a/extras/chassis_id/chassis_id.h
+++ b/extras/chassis_id/chassis_id.h
@@ -18,7 +18,7 @@
* Boston, MA 021110-1307, USA.
*
* Authors: Atul Sabharwal
- *
+ *
*/
#ifndef _CHASSIS_ID_H
@@ -35,6 +35,8 @@
#define ERROR_BAD_SCAN 8
#define NO_ERROR 0
-extern int table_init();
+extern int table_init(void);
+extern int table_find_disk(const char *serialnumber , int *chassis_num, int *slot_num);
+extern int table_select_disk(int diskindex);
#endif