Subject: bin/4122: XIDLE encapsulation of "ufp" is not consistent in rusers_proc.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 09/18/1997 17:07:54
>Number: 4122
>Category: bin
>Synopsis: XIDLE encapsulation of "ufp" is not consistent in rusers_proc.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 18 08:20:01 1997
>Last-Modified:
>Originator: Thorsten Frueauf
>Organization:
private
>Release: <NetBSD-current source date> NetBSD current 18.09.1997
>Environment:
System: NetBSD cyberlap 1.2G NetBSD 1.2G (CYBERLAP) #2: Wed Sep 17 17:51:12 CEST 1997 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386
>Description:
XIDLE encapsulation of "ufp" is not consistent in
/src/libexec/rpc.rusersd/rusers_proc.c, thus it does not build if XIDLE is
not defined.
>How-To-Repeat:
Try to compile /src/libexec/rpc.rusersd with current sources of today
where XIDLE is not defined and watch:
cc -O -O4 -m486 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -c /usr/
src/libexec/rpc.rusersd/rusers_proc.c
/usr/src/libexec/rpc.rusersd/rusers_proc.c: In function `rusers_num_svc':
/usr/src/libexec/rpc.rusersd/rusers_proc.c:219: `ufp' undeclared (first use this function)
/usr/src/libexec/rpc.rusersd/rusers_proc.c:219: (Each undeclared identifier is reported only once
/usr/src/libexec/rpc.rusersd/rusers_proc.c:219: for each function it appears in.)
/usr/src/libexec/rpc.rusersd/rusers_proc.c: In function `do_names_3':
/usr/src/libexec/rpc.rusersd/rusers_proc.c:251: `ufp' undeclared (first use this function)
/usr/src/libexec/rpc.rusersd/rusers_proc.c: In function `do_names_2':
/usr/src/libexec/rpc.rusersd/rusers_proc.c:313: `ufp' undeclared (first use this function)
*** Error code 1
>Fix:
Either encapsulate above lines with "#ifdef XIDLE" or define "FILE *ufp;"
global in /src/libexec/rpc.rusersd/rusers_proc.c.
>Audit-Trail:
>Unformatted:
XIDLE encapsulation of "ufp" is not consistent in rusers_proc.c