libstand: Fix some build warnings/errors when trying to build for 64bit.
authorImre Vadasz <imre@vdsz.com>
Thu, 25 Feb 2016 20:16:14 +0000 (21:16 +0100)
committerImre Vadasz <imre@vdsz.com>
Thu, 25 Feb 2016 20:16:14 +0000 (21:16 +0100)
commit706c0b7a17a778318bdef4ef3a93c26c41a43ce0
tree43ebf81cd646f19b63ccb1c1ff4def146043c1a3
parent3378c207979c241d8b70e30df809d10fb9acdd33
libstand: Fix some build warnings/errors when trying to build for 64bit.

* Just casts uintptr_t values to uintmax_t, since libstand doesn't have
  <inttypes.h> and hence no PRIuPTR for formatting those.

* Use %zd and %zu for ssize_t and size_t values, instead of %d formats.

Partly Submitted-by: zrj (casting uintptr_t to uintmax_t as easiest fix).
lib/libstand/net.c
lib/libstand/udp.c
lib/libstand/zalloc.c
lib/libstand/zalloc_malloc.c