X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4a3eedf9ecc9bbe3f3a5c6ce5e53ad199d639d32..ca66cea69e6e866fd781ae2260d9474bdd48f2ca:/bsd/kern/bsd_init.c?ds=inline diff --git a/bsd/kern/bsd_init.c b/bsd/kern/bsd_init.c index 2a04d688c..50d955a3f 100644 --- a/bsd/kern/bsd_init.c +++ b/bsd/kern/bsd_init.c @@ -223,7 +223,7 @@ struct vnode *rootvp; int boothowto = RB_DEBUG; void lightning_bolt(void *); -extern kern_return_t IOFindBSDRoot(char *, dev_t *, u_int32_t *); +extern kern_return_t IOFindBSDRoot(char *, unsigned int, dev_t *, u_int32_t *); extern void IOSecureBSDRoot(const char * rootName); extern kern_return_t IOKitBSDInit(void ); extern void kminit(void); @@ -962,7 +962,7 @@ setconf(void) * which needs to be under network funnel. Right thing to do * here is to drop the funnel alltogether and regrab it afterwards */ - err = IOFindBSDRoot( rootdevice, &rootdev, &flags ); + err = IOFindBSDRoot(rootdevice, sizeof(rootdevice), &rootdev, &flags); if( err) { printf("setconf: IOFindBSDRoot returned an error (%d);" "setting rootdevice to 'sd0a'.\n", err); /* XXX DEBUG TEMP */