From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8e22b4f51586172d72e55a8b895fead1@quanstro.net> To: fernanbolando@mailc.net, 9fans@9fans.net From: erik quanstrom Date: Sun, 29 Jun 2008 09:38:11 -0400 In-Reply-To: <1d5d51400806290432h58b60e4cm75936664c988d6a3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Updating an old port . Warning! long lines of code Topicbox-Message-UUID: cb472aa0-ead3-11e9-9d60-3106f5b1d025 > /usr/fernan/tmp/scm/sys.c:628[sys.c:3613] initialization of incompatible > pointers: sfptob > IND FUNC(INT, IND STRUCT _7_) INT and IND FUNC(OLD, INT, LONG) INT > /usr/fernan/tmp/scm/sys.c:629[sys.c:3614] initialization of incompatible > pointers: sfptob > IND FUNC(IND CONST CHAR, IND STRUCT _7_) INT and IND FUNC(OLD, IND CHAR, > LONG) INT in the first case, you're trying to assign pointers of these types: IND FUNC(INT, IND STRUCT _7_) INT IND FUNC(OLD, INT, LONG) INT these kenc's internal representation for int (*)(int, struct _7_*); int (*)(int, long); /* pre-ansi declaration */ so the problem here is that you're mixing a pointer to a structure with a long. similarly, IND FUNC(IND CONST CHAR, IND STRUCT _7_) INT IND FUNC(OLD, IND CHAR, LONG) INT is int (*)(const char*, struct _7_*); int (*)(char*, long); /* pre-ansi declaration */ struct _7_ must be FILE, and the two functions must be fputc fputs. (but you knew that.) so the solution would be to clean up the declaration of sfputc and sfputs. - erik