git: libc/rpc: Fix -Wtype-limits.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Apr 16 01:14:08 PDT 2019


commit f4482edf2475cf4a3c0d3f1526718c797330c1d4
Author: Sascha Wildner <saw at online.de>
Date:   Tue Apr 16 10:13:52 2019 +0200

    libc/rpc: Fix -Wtype-limits.
    
    Instead of triggering a warning by checking if the passed type is signed
    split the INT_STRLEN_MACRO() into two, one for unsigned and the other for
    signed types. The latter isn't used and was added just for completeness.

Summary of changes:
 lib/libc/rpc/netname.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f4482edf2475cf4a3c0d3f1526718c797330c1d4


-- 
DragonFly BSD source repository



More information about the Commits mailing list