From: Tommy McCabe <rocketjet314@yahoo.com>
To: linux-8086@vger.kernel.org
Subject: Re: Vjhc patch
Date: Mon, 19 Jul 2004 10:53:41 -0700 (PDT) [thread overview]
Message-ID: <20040719175341.23926.qmail@web51308.mail.yahoo.com> (raw)
In-Reply-To: <20040719152335.GG2830@duckman.distro.conectiva>
--- Eduardo Pereira Habkost
<ehabkost@conectiva.com.br> wrote:
> On Sat, Jul 17, 2004 at 04:51:33PM -0700, Tommy
> McCabe wrote:
> > Gets rid of the function to define a function
> which
> > causes errors in elksnet/ktcp/vjhc.c.
>
> I guess that there was a reason to use DEFUN(),
> probably due to support
> of different function declaration styles, on
> different compilers. If we
> choose to remove DEFUN(), I guess that we should
> remove because we know
> it is not needed for anything, not because of
> building errors that can
> be caused by errors in other places, not by the use
> of DEFUN().
>
> And, if you get errors when building, I think that
> is good to show which
> erros you see. It is not possible to review your
> fixes, if we don't know
> what is the real reason for you making those
> changes.
>
> For example: ktcp builds without problems here, so I
> am very interested
> to see why do you get errors on your system, but I
> don't see any errors
> here. Could you show us the error messages?
Look at vjhc.h. There are two definitions of DEFUN,
depending on some parameter. One defines a function.
The other doesn't. For some reason, the parameter got
changed over the years, so now anything using DEFUn
comes out as gibberish to the compiler.
> > --- ./elkscomp/elksnet/ktcp/vjhc.c 2002-07-28
> 11:45:45.000000000 -0400
> > +++ ./elkscurr/elksnet/ktcp/vjhc.c 2004-07-17
> 19:46:40.000000000 -0400
> > @@ -113,10 +113,8 @@
> > }
> > }
> >
> > -DEFUN
> > -(int ip_vjhc_compress, (pkt),
> > - pkt_ut *pkt
> > -)
> > +int ip_vjhc_compress(pkt_ut *pkt)
> > +
> > {
> > iphdr_t *ip_hdr, *oip_hdr;
> > tcphdr_t *tcp_hdr, *otcp_hdr;
> > @@ -388,10 +386,8 @@
> > return PPP_TYPE_VJHC_COMPR;
> > }
> >
> > -DEFUN
> > -(void ip_vjhc_arr_uncompr, (pkt),
> > - pkt_ut *pkt
> > -)
> > +void ip_vjhc_arr_uncompr(pkt_ut *pkt)
> > +
> > {
> > rcv_state_ut *state;
> > iphdr_t *ip_hdr;
> > @@ -430,10 +426,8 @@
> >
> > }
> >
> > -DEFUN
> > -(void ip_vjhc_arr_compr, (pkt),
> > - pkt_ut *pkt
> > -)
> > +void ip_vjhc_arr_compr(pkt_ut *pkt)
> > +
> > {
> > iphdr_t *ip_hdr;
> > tcphdr_t *tcp_hdr;
>
>
> --
> Eduardo
>
> ATTACHMENT part 2 application/pgp-signature
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
next prev parent reply other threads:[~2004-07-19 17:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-17 23:51 Vjhc patch Tommy McCabe
2004-07-19 15:23 ` Eduardo Pereira Habkost
2004-07-19 17:53 ` Tommy McCabe [this message]
2004-07-19 18:06 ` Eduardo Pereira Habkost
2004-07-19 18:51 ` Tommy McCabe
2004-07-19 19:01 ` Eduardo Pereira Habkost
2004-07-19 20:57 ` Tommy McCabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040719175341.23926.qmail@web51308.mail.yahoo.com \
--to=rocketjet314@yahoo.com \
--cc=linux-8086@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.