Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2000 15:01:35 +0100 (CET)
From:      Christian Weisgerber <naddy@mips.rhein-neckar.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/15906: rcmd(3) prototype disagrees with definition
Message-ID:  <200001051401.PAA48674@bigeye.rhein-neckar.de>

next in thread | raw e-mail | index | archive | help

>Number:         15906
>Category:       bin
>Synopsis:       rcmd(3) prototype disagrees with definition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan  5 06:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

>Description:

What's the type of rcmd(3)'s second parameter, int or u_short?

Man page:
    int
    rcmd(char **ahost, int inport, const char *locuser, const char *remuser,
         const char *cmd, int *fd2p)

Prototype in /usr/include/unistd.h:
    int rcmd __P((char **, int, const char *,
                  const char *, const char *, int *));

Actual definition in src/lib/libc/net/rcmd.c:
    int
    rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
        char **ahost;
        u_short rport;
        const char *locuser, *remuser, *cmd;
        int *fd2p;

Which instances should be fixed?

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001051401.PAA48674>