From ce5c899f22106926ca50c153a600b537d08970bc Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 4 Jul 2008 17:47:11 +0100 Subject: stubdom: use host's gcc This makes stubdom use the host's gcc instead of downloading/compiling binutils+gcc. That requires a bunch of changes and even uncovered a few bugs, but saves a lot of time. Signed-off-by: Samuel Thibault --- extras/mini-os/pcifront.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'extras/mini-os/pcifront.c') diff --git a/extras/mini-os/pcifront.c b/extras/mini-os/pcifront.c index bd8be0b9f0..9f40081758 100644 --- a/extras/mini-os/pcifront.c +++ b/extras/mini-os/pcifront.c @@ -49,19 +49,17 @@ static void free_pcifront(struct pcifront_dev *dev) free(dev); } -struct pcifront_dev *init_pcifront(char *nodename) +struct pcifront_dev *init_pcifront(char *_nodename) { xenbus_transaction_t xbt; char* err; char* message=NULL; int retry=0; char* msg; + char* nodename = _nodename ? _nodename : "device/pci/0"; struct pcifront_dev *dev; - if (!nodename) - nodename = "device/pci/0"; - char path[strlen(nodename) + 1 + 10 + 1]; printk("******************* PCIFRONT for %s **********\n\n\n", nodename); -- cgit v1.2.3