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 --- doc/xsmp.xml | 16 ++++++++-------- include/X11/SM/SMlib.h | 2 +- src/sm_client.c | 6 +++--- src/sm_error.c | 8 ++++---- src/sm_genid.c | 6 +++--- src/sm_process.c | 4 ++-- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/doc/xsmp.xml b/doc/xsmp.xml index a087aff..b42621e 100644 --- a/doc/xsmp.xml +++ b/doc/xsmp.xml @@ -426,12 +426,12 @@ set of valid responses and possible error messages are listed. The The client must send this message to the SM to register the client's existence. If a client is being restarted from a previous session, the previous-ID field must contain the client -ID from the previous session. For new clients, +ID from the previous session. For new clients, previous-ID should be of zero length. -If previous-ID is not valid, +If previous-ID is not valid, the SM will send a BadValue error message to the client. At this point the SM reverts to the register state and waits for another RegisterClient @@ -447,9 +447,9 @@ null previous-ID field. The client-ID specifies a unique identification -for this client. If the client had specified an ID in the -previous-ID field of the -RegisterClient message, +for this client. If the client had specified an ID in the +previous-ID field of the +RegisterClient message, client-ID will be identical to the previously specified ID. If previous-ID was null, client-ID will be a unique ID freshly generated @@ -779,7 +779,7 @@ and Any or Errors for the SaveComplete Die ShutdownCancelled - + @@ -808,7 +808,7 @@ field of the SaveYourselfDone message. Valid Responses: ShutdownCancelled SaveYourselfPhase2 - + @@ -902,7 +902,7 @@ Sets the specified properties to the specified values. Existing properties not specified in the Set­Properties message are unaffected. Some properties have predefined semantics. -See section 11, +See section 11, “Predefined Properties.” diff --git a/include/X11/SM/SMlib.h b/include/X11/SM/SMlib.h index 86be664..fb1166b 100644 --- a/include/X11/SM/SMlib.h +++ b/include/X11/SM/SMlib.h @@ -168,7 +168,7 @@ typedef struct { typedef Status (*SmsRegisterClientProc) ( SmsConn /* smsConn */, SmPointer /* managerData */, - char * /* previousId */ + char * /* previousId */ ); typedef void (*SmsInteractRequestProc) ( 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.1