I had a compile error when build amd64 kernel found to be readdisklabel recently
changed from returning string to error number. My diff below to correct.
Regards
Nigel Taylor
Index: rf_openbsdkintf.c
===================================================================
RCS file: /cvs/src/sys/dev/raidframe/rf_openbsdkintf.c,v
retrieving revision 1.51
diff -u -r1.51 rf_openbsdkintf.c
--- rf_openbsdkintf.c 21 May 2009 23:45:48 -0000 1.51
+++ rf_openbsdkintf.c 16 Aug 2009 20:37:21 -0000
@@ -2106,7 +2106,7 @@
int spoofonly)
{
int unit = DISKUNIT(dev);
- char *errstring;
+ int error;
RF_Raid_t *raidPtr;
int i;
struct partition *pp;
@@ -2122,9 +2122,9 @@
/*
* Call the generic disklabel extraction routine.
*/
- errstring = readdisklabel(DISKLABELDEV(dev), raidstrategy, lp,
- spoofonly);
- if (errstring) {
+ error = readdisklabel(DISKLABELDEV(dev), raidstrategy, lp,
+ spoofonly);
+ if (error) {
/*printf("%s: %s\n", rs->sc_xname, errstring);*/
return;
}