Gah, fix cut-and-paste-o.
This commit is contained in:
parent
a9ff06c2a0
commit
cbc82a1a5c
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: autoconf.c,v 1.56 2021/05/22 15:04:33 thorpej Exp $ */
|
/* $NetBSD: autoconf.c,v 1.57 2021/05/22 15:05:36 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.56 2021/05/22 15:04:33 thorpej Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.57 2021/05/22 15:05:36 thorpej Exp $");
|
||||||
|
|
||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
||||||
|
@ -116,13 +116,6 @@ qemu_find_rootdev(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prom_qemu_getenv("rootdev", buf, sizeof(buf))) {
|
|
||||||
snprintf(bootinfo.booted_dev, sizeof(bootinfo.booted_dev),
|
|
||||||
"rootdev=%s", buf);
|
|
||||||
booted_device = device_find_by_xname(buf);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const size_t devlen = strlen("/dev/");
|
const size_t devlen = strlen("/dev/");
|
||||||
const char *cp = buf;
|
const char *cp = buf;
|
||||||
char *ecp = &buf[sizeof(buf) - 1];
|
char *ecp = &buf[sizeof(buf) - 1];
|
||||||
|
|
Loading…
Reference in New Issue