From 4708d636de50281ab2c52c32b81b7ecb67657820 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Sep 2011 22:03:00 -0700 Subject: 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 --- src/sm_client.c | 6 +++--- src/sm_error.c | 8 ++++---- src/sm_genid.c | 6 +++--- src/sm_process.c | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/sm_client.c b/src/sm_client.c index a5c714f..70511c1 100644 --- a/src/sm_client.c +++ b/src/sm_client.c @@ -308,7 +308,7 @@ SmcCloseConnection(SmcConn smcConn, int count, char **reasonMsgs) pData += 4; for (i = 0; i < count; i++) - STORE_ARRAY8 (pData, strlen (reasonMsgs[i]), reasonMsgs[i]); + STORE_ARRAY8 (pData, strlen (reasonMsgs[i]), reasonMsgs[i]); IceFlush (iceConn); @@ -336,7 +336,7 @@ SmcCloseConnection(SmcConn smcConn, int count, char **reasonMsgs) free ((char *) ptr); ptr = next; } - + } free ((char *) smcConn); @@ -408,7 +408,7 @@ SmcDeleteProperties(SmcConn smcConn, int numProps, char **propNames) pData += 4; for (i = 0; i < numProps; i++) - STORE_ARRAY8 (pData, strlen (propNames[i]), propNames[i]); + STORE_ARRAY8 (pData, strlen (propNames[i]), propNames[i]); IceFlush (iceConn); } diff --git a/src/sm_error.c b/src/sm_error.c index 0714943..29f6e45 100644 --- a/src/sm_error.c +++ b/src/sm_error.c @@ -273,12 +273,12 @@ _SmsDefaultErrorHandler(SmsConn smsConn, Bool swap, int offendingMinorOpcode, -/* +/* * This procedure sets the Smc error handler to be the specified * routine. If NULL is passed in the default error handler is restored. * The function's return value is the previous error handler. */ - + SmcErrorHandler SmcSetErrorHandler(SmcErrorHandler handler) { @@ -294,12 +294,12 @@ SmcSetErrorHandler(SmcErrorHandler handler) -/* +/* * This procedure sets the Sms error handler to be the specified * routine. If NULL is passed in the default error handler is restored. * The function's return value is the previous error handler. */ - + SmsErrorHandler SmsSetErrorHandler(SmsErrorHandler handler) { 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++) { diff --git a/src/sm_process.c b/src/sm_process.c index c7c7abe..b8f1b2c 100644 --- a/src/sm_process.c +++ b/src/sm_process.c @@ -152,7 +152,7 @@ _SmcProcessMessage(IceConn iceConn, IcePointer clientData, int opcode, { smRegisterClientReplyMsg *pMsg; char *pData, *pStart; - _SmcRegisterClientReply *reply = + _SmcRegisterClientReply *reply = (_SmcRegisterClientReply *) (replyWait->reply); #if 0 /* No-op */ @@ -770,7 +770,7 @@ _SmsProcessMessage(IceConn iceConn, IcePointer clientData, int opcode, char *pData, *pStart; SmProp **props = NULL; int numProps; - + #if 0 /* No-op */ CHECK_AT_LEAST_SIZE (iceConn, _SmsOpcode, opcode, length, SIZEOF (smSetPropertiesMsg), IceFatalToProtocol); -- cgit v1.2.3