Subject: port-amiga/1283: errors in sys/arch/amiga/dev/fd.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 07/26/1995 15:27:47
>Number:         1283
>Category:       port-amiga
>Synopsis:       errors in sys/arch/amiga/dev/fd.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 26 18:05:02 1995
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 25-07-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #154: Sun Jul 9 13:46:31 MET DST 1995 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
typo and wrong type for a function
../../../../arch/amiga/dev/fd.c:1561: conflicting types for `fdminphys'
../../../../arch/amiga/dev/fd.c:165: previous declaration of `fdminphys'
../../../../arch/amiga/dev/fd.c: In function `fdminphys':
../../../../arch/amiga/dev/fd.c:1581: parse error before `;'
../../../../arch/amiga/dev/fd.c:1650: parse error before `*'

>How-To-Repeat:
	make an new kernel
>Fix:
	Apply this diff:

*** sys/arch/amiga/dev/fd.c-orig	Mon Jul 24 14:19:44 1995
--- sys/arch/amiga/dev/fd.c	Wed Jul 26 15:21:48 1995
***************
*** 1556,1562 ****
  /*
   * min byte count to whats left of the track in question
   */
! int
  fdminphys(bp)
  	struct buf *bp;
  {
--- 1556,1562 ----
  /*
   * min byte count to whats left of the track in question
   */
! u_int
  fdminphys(bp)
  	struct buf *bp;
  {
***************
*** 1578,1584 ****
  #ifdef FDDEBUG
  	printf(" after %d\n", bp->b_bcount);
  #endif
! 	return (minphys(bp);
  }
  
  /*
--- 1578,1584 ----
  #ifdef FDDEBUG
  	printf(" after %d\n", bp->b_bcount);
  #endif
! 	return (minphys(bp));
  }
  
  /*

>Audit-Trail:
>Unformatted: