lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] void pointer arithmetic


From: Bertrik Sikken
Subject: [lwip-users] void pointer arithmetic
Date: Sun, 20 Nov 2005 20:27:22 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I noticed something in the latest version of inet.c in CVS.

The latest update (from 1.21 to 1.22) adds the following line of code
        dataptr += 2;
but dataptr is a pointer to a void and this line won't compile with my
compiler.

Although a bit ugly, the original line
        dataptr = (void *)((u16_t *)dataptr + 1);
works fine.

Kind regards,
Bertrik


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDgM4aETD6mlrWxPURAqszAKCMbXp3d0YL3ZZH/wk2XsWl590UPACdFsef
z1TLytBOekzRsP+HMu/LmWE=
=oYd1
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]