From nobody  Tue May 13 20:39:36 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id UAA11876;
          Tue, 13 May 1997 20:39:36 -0700 (PDT)
Message-Id: <199705140339.UAA11876@hub.freebsd.org>
Date: Tue, 13 May 1997 20:39:36 -0700 (PDT)
From: chi@rd.njk.co.jp
To: freebsd-gnats-submit@freebsd.org
Subject: param counts not idential between definition and call(in netboot/ns8390.c)
X-Send-Pr-Version: www-1.0

>Number:         3595
>Category:       kern
>Synopsis:       param counts not idential between definition and call(in netboot/ns8390.c)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 13 20:40:01 PDT 1997
>Closed-Date:    Sat Aug 23 16:38:54 PDT 1997
>Last-Modified:  Sat Aug 23 16:39:22 PDT 1997
>Originator:     Chiharu Shibata
>Release:        FreeBSD-2.1.0R or later
>Organization:
NJK Corporation
>Environment:
FreeBSD carrot FreeBSD 2.1.0-RELEASE #0: Sat Jun  1 10:30:42  1996 h-nokubi@sassaby.nokubi.or.jp:/usr/src/sys/compile/GENERIC98
>Description:
(Sorry of my poor English.)
Functions eth_pio_read() and eth_pio_write() in netboot/ns8390.c are defined that 4 parameters required.
But these functios are called only 3 parameters.
Here is an abstract of ns8390.c
----
        eth_pio_write(test, 8192, sizeof(test));
        eth_pio_read(8192, testbuf, sizeof(test));
[snip]
eth_pio_read(src, dst, cnt, init)
        unsigned short src;
        unsigned char *dst;
        unsigned short cnt;
        int init;
{
----
>How-To-Repeat:
None.
>Fix:
I think "int init" which is 4th parameter is not necessary.
So cut it from definition of eth_pio_read() and eth_pio_write().

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Aug 23 16:38:54 PDT 1997 
State-Changed-Why:  
Fixed in revision 1.12 of ns8390.c. 
>Unformatted:
