git: libc/inet: Clean up a bit and add a missing errno on failure.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Mar 15 14:37:57 PDT 2015


commit 63373b2552d4e1af157d862d89d54242863a125a
Author: Sascha Wildner <saw at online.de>
Date:   Sun Mar 15 22:37:37 2015 +0100

    libc/inet: Clean up a bit and add a missing errno on failure.
    
    Also remove the unused inet_data.c file.
    
    Some of this commit was taken from FreeBSD.

Summary of changes:
 lib/libc/inet/inet_addr.c      | 11 +++-------
 lib/libc/inet/inet_cidr_ntop.c | 22 ++++++--------------
 lib/libc/inet/inet_cidr_pton.c | 29 +++++++-------------------
 lib/libc/inet/inet_data.c      | 46 ------------------------------------------
 lib/libc/inet/inet_net_ntop.c  | 43 +++++++++++++++------------------------
 lib/libc/inet/inet_net_pton.c  | 26 +++++-------------------
 lib/libc/inet/inet_neta.c      | 19 ++++-------------
 lib/libc/inet/inet_ntop.c      | 38 +++++++++++++++-------------------
 lib/libc/inet/inet_pton.c      | 15 +++++---------
 lib/libc/inet/nsap_addr.c      |  9 ++-------
 10 files changed, 64 insertions(+), 194 deletions(-)
 delete mode 100644 lib/libc/inet/inet_data.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/63373b2552d4e1af157d862d89d54242863a125a


-- 
DragonFly BSD source repository



More information about the Commits mailing list