git: libstand: Fix some build warnings/errors when trying to build for 64bit.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Thu Feb 25 12:23:05 PST 2016


commit 706c0b7a17a778318bdef4ef3a93c26c41a43ce0
Author: Imre Vadasz <imre at vdsz.com>
Date:   Thu Feb 25 21:16:14 2016 +0100

    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).

Summary of changes:
 lib/libstand/net.c           |  2 +-
 lib/libstand/udp.c           |  2 +-
 lib/libstand/zalloc.c        | 14 +++++++++-----
 lib/libstand/zalloc_malloc.c |  2 +-
 4 files changed, 12 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/706c0b7a17a778318bdef4ef3a93c26c41a43ce0


-- 
DragonFly BSD source repository



More information about the Commits mailing list