Ethereal-dev: [Ethereal-dev] Question about asn1.[hc]

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 23 Jan 2004 02:38:56 +0100
I just had a look at plugins/asn1/packet-asn1.c to reduce the number of
signed/unsigned warnings. The easiest way to fix many of them would be
to change the type of offset from int to guint. This type is used in
asn1_open, asn1_close etc in asn1.c
Further investigation shows, that a value of -1 indicates an error
condition. In one case, there's a check in asn1.c whether offset is
less than -1. So my question is: Can offset in asn1.c be made an
unsigned int?

  Ciao
         Jörg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.