summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
commit620f7445dcacfbb740c55a9e4b891593c3f94910 (patch)
treee092711dae9ac1af540a2e5469493f13303248c1 /netlib.c
parent76b2aaba9575d60230387555822b18ceeb07353a (diff)
downloadgpsd-620f7445dcacfbb740c55a9e4b891593c3f94910.tar.gz
Nuke trailing whitespace in C source.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib.c b/netlib.c
index 3c3aa66d..e09406e2 100644
--- a/netlib.c
+++ b/netlib.c
@@ -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);