aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/ibcs2
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
committerBruce Evans <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
commitb9dcd593ff1f6ff7ed984f3c4058133bd398e26a (patch)
tree04e25969375a9bd7abb8fac4c8befd49da157ef5 /sys/i386/ibcs2
parent8b6e12e27f3f75793324eb1c747094c9165235de (diff)
downloadsrc-b9dcd593ff1f6ff7ed984f3c4058133bd398e26a.tar.gz
src-b9dcd593ff1f6ff7ed984f3c4058133bd398e26a.zip
Fixed type mismatches for functions with args of type vm_prot_t and/or
vm_inherit_t. These types are smaller than ints, so the prototypes should have used the promoted type (int) to match the old-style function definitions. They use just vm_prot_t and/or vm_inherit_t. This depends on gcc features to work. I fixed the definitions since this is easiest. The correct fix may be to change the small types to u_int, to optimize for time instead of space.
Notes
Notes: svn path=/head/; revision=28751
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r--sys/i386/ibcs2/imgact_coff.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c
index 77bf75061de6..187fc4375528 100644
--- a/sys/i386/ibcs2/imgact_coff.c
+++ b/sys/i386/ibcs2/imgact_coff.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: imgact_coff.c,v 1.24 1997/04/13 01:48:13 dyson Exp $
+ * $Id: imgact_coff.c,v 1.25 1997/07/20 09:39:51 bde Exp $
*/
#include <sys/param.h>
@@ -58,13 +58,8 @@ extern int exec_coff_imgact __P((struct image_params *imgp));
static int load_coff_section __P((struct vmspace *vmspace, struct vnode *vp, vm_offset_t offset, caddr_t vmaddr, size_t memsz, size_t filsz, vm_prot_t prot));
static int
-load_coff_section(vmspace, vp, offset, vmaddr, memsz, filsz, prot)
- struct vmspace *vmspace;
- struct vnode *vp;
- vm_offset_t offset;
- caddr_t vmaddr;
- size_t memsz, filsz;
- vm_prot_t prot;
+load_coff_section(struct vmspace *vmspace, struct vnode *vp, vm_offset_t offset,
+ caddr_t vmaddr, size_t memsz, size_t filsz, vm_prot_t prot)
{
size_t map_len;
vm_offset_t map_offset;