From: Martin Schulze (joey@infodrom.org)
Date: Sat Sep 21 2002 - 10:35:12 CEST
danz wrote:
> Hi
> I just downloaded cfingerd-1.4.3 for my system. While trying to compile,
> in the "userlist" directory, i get this error :
>
> cc -g -O2 -Wall -c -o display.o display.c
> display.c: In function `process_display':
> display.c:92: `cp' undeclared (first use in this function)
> display.c:92: (Each undeclared identifier is reported only once
> display.c:92: for each function it appears in.)
> display.c:93: `x' undeclared (first use in this function)
>
> I am using gcc 2.95.3 with binutils 2.11.2 on a linux kernel 2.4.19
> Hope someone can help me out.
Hmm, that's interesting... It's fixed in CVS though, please use the
following patch:
Index: userlist/display.c
===================================================================
RCS file: /var/cvs/infodrom/cfingerd/userlist/display.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- userlist/display.c 29 Sep 1999 07:04:24 -0000 1.8
+++ userlist/display.c 21 Apr 2001 15:17:20 -0000 1.9
@@ -89,6 +89,8 @@
pwent = getpwnam((char *) ru);
if (pwent) {
+ char *cp, *x;
+
cp = pwent->pw_gecos;
if ((x = index (pwent->pw_gecos, ',')) != NULL) /* username */
*x = '\0';
Sorry for it, must be an oversight.
Regards,
Joey
-- Life is too short to run proprietary software. -- Bdale Garbee
This archive was generated by hypermail 2.1.4 : Sat Sep 21 2002 - 10:37:09 CEST