diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:03:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:03:00 -0700 |
commit | 4708d636de50281ab2c52c32b81b7ecb67657820 (patch) | |
tree | f6462af5b5dc4936012b432132db180a9aafa270 /src/sm_genid.c | |
parent | 44eecd93986368e71c404d8faa264a514bf88ab1 (diff) |
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/sm_genid.c')
-rw-r--r-- | src/sm_genid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sm_genid.c b/src/sm_genid.c index 40afb0c..a138572 100644 --- a/src/sm_genid.c +++ b/src/sm_genid.c @@ -167,17 +167,17 @@ SmsGenerateClientID(SmsConn smsConn) return NULL; for (first_ai = ai; ai != NULL; ai = ai->ai_next) { - if ( (ai->ai_family == AF_INET) || (ai->ai_family == AF_INET6) ) + if ( (ai->ai_family == AF_INET) || (ai->ai_family == AF_INET6) ) break; } if (ai == NULL) { freeaddrinfo(first_ai); return NULL; - } + } if (ai->ai_family == AF_INET6) { unsigned char *cp = (unsigned char *) &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr.s6_addr; - + *addr_ptr++ = '6'; /* IPv6 address code */ for (i = 0 ; i < 16 ; i++) { |