Deleted Added
full compact
module.c (65940) module.c (77285)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/boot/common/module.c 65940 2000-09-16 19:59:41Z dcs $
26 * $FreeBSD: head/sys/boot/common/module.c 77285 2001-05-27 23:26:11Z jesper $
27 */
28
29/*
30 * file/module function dispatcher, support, etc.
31 */
32
33#include <stand.h>
34#include <string.h>

--- 60 unchanged lines hidden (view full) ---

95 }
96 argv += (optind - 1);
97 argc -= (optind - 1);
98
99 /*
100 * Request to load a raw file?
101 */
102 if (dofile) {
27 */
28
29/*
30 * file/module function dispatcher, support, etc.
31 */
32
33#include <stand.h>
34#include <string.h>

--- 60 unchanged lines hidden (view full) ---

95 }
96 argv += (optind - 1);
97 argc -= (optind - 1);
98
99 /*
100 * Request to load a raw file?
101 */
102 if (dofile) {
103 if ((typestr == NULL) || (*typestr == 0)) {
103 if (argc != 2 || (typestr == NULL) || (*typestr == 0)) {
104 command_errmsg = "invalid load type";
105 return(CMD_ERROR);
106 }
107 return(file_loadraw(typestr, argv[1]));
108 }
109
110 /*
111 * Looks like a request for a module.

--- 532 unchanged lines hidden ---
104 command_errmsg = "invalid load type";
105 return(CMD_ERROR);
106 }
107 return(file_loadraw(typestr, argv[1]));
108 }
109
110 /*
111 * Looks like a request for a module.

--- 532 unchanged lines hidden ---