[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Possible bug
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-inetutils] Possible bug |
Date: |
Tue, 11 Feb 2003 13:59:45 EET |
Hello Arlene,
> "telnetd.c", line 284.50: 1506-280 (E) Function argument assignment between
> types "unsigned long*" and "int*" is not allowed.
>
> "telnetd.c", line 353.18: 1506-068 (S) Operation between types "char*" and
> "int" is not allowed.
Both should have been warnings not errors for any decent
compiler. Check if AIX native compiler has some option to turn off
such excessive strictness.
If it doesn't, then try to apply the attached patch, it should allow
you to get telnetd running. Please inform me if it works for you.
And finally, the best way of course is to get gcc and compile the
package with it :^)
Regards,
Sergey
Index: telnetd/telnetd.c
===================================================================
RCS file: /cvsroot/inetutils/inetutils/telnetd/telnetd.c,v
retrieving revision 1.30
diff -p -u -w -b -r1.30 telnetd.c
--- telnetd.c 29 Apr 2002 21:21:12 -0000 1.30
+++ telnetd.c 11 Feb 2003 11:50:58 -0000
@@ -270,12 +270,14 @@ parse_debug_level (char *str)
typedef unsigned int ip_addr_t; /*FIXME*/
+extern char *localhost __P ((void));
+
void
telnetd_setup (int fd)
{
struct sockaddr_in saddr;
int true = 1;
- int len;
+ socklen_t len;
struct hostent *hp;
char uname[256]; /*FIXME*/
int level;