diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:24:26 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:24:26 -0400 |
commit | 620f7445dcacfbb740c55a9e4b891593c3f94910 (patch) | |
tree | e092711dae9ac1af540a2e5469493f13303248c1 /netlib.c | |
parent | 76b2aaba9575d60230387555822b18ceeb07353a (diff) | |
download | gpsd-620f7445dcacfbb740c55a9e4b891593c3f94910.tar.gz |
Nuke trailing whitespace in C source.
Diffstat (limited to 'netlib.c')
-rw-r--r-- | netlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,8 +159,8 @@ socket_t netlib_localsocket(const char *sockfile, int socktype) memset(&saddr, 0, sizeof(struct sockaddr_un)); saddr.sun_family = AF_UNIX; - (void)strlcpy(saddr.sun_path, - sockfile, + (void)strlcpy(saddr.sun_path, + sockfile, sizeof(saddr.sun_path)); /*@-unrecog@*/ @@ -175,7 +175,7 @@ socket_t netlib_localsocket(const char *sockfile, int socktype) } char *netlib_sock2ip(socket_t fd) -/* retrieve the IP address corresponding to a socket */ +/* retrieve the IP address corresponding to a socket */ { sockaddr_t fsin; socklen_t alen = (socklen_t) sizeof(fsin); |