Made packet data len "size_t".
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 Oct 2012 07:37:36 +0000 (09:37 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 20 Oct 2012 07:40:01 +0000 (09:40 +0200)
commit41ae75bf88f17769e6da87e15286b1ca086b0967
tree09cd21e40ca58066993e11829a672935446e01d7
parent941631859bad00ebfe8d612b7388fe5604ed1ea8
Made packet data len "size_t".

Only one place needs it to be negative: the read from the socket.
For the rest of the code, it is ALWAYS positive.

As part of this, changed a few other variables, too.
And uses "%zu" for printing "size_t" variables.  C99 is everywhere.
If you want to build the server on a non-C99 compiler, go away.
src/include/libradius.h
src/lib/radius.c
src/lib/tcp.c
src/lib/vqp.c