Skip to content

Commit

Permalink
Fix TS-344 by removing all trailing spaces from the source files
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/trafficserver/traffic/trunk@943821 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mturk committed May 13, 2010
1 parent ac5f3e9 commit 468058a
Show file tree
Hide file tree
Showing 717 changed files with 4,439 additions and 4,439 deletions.
6 changes: 3 additions & 3 deletions example/add-header/add-header.c
Expand Up @@ -21,15 +21,15 @@
limitations under the License.
*/

/* add-header.c: a plugin that adds MIME headers to
/* add-header.c: a plugin that adds MIME headers to
* client request headers.
*
*
* Usage:
* Usage:
* (NT): AddHeader.dll "name1: value1" "name2: value2" ...
* (Solaris): add-header.so "name1: value1" "name2: value2" ...
*
* namei and valuei are the name and value of the
* namei and valuei are the name and value of the
* ith MIME header to be added to the client request
*/

Expand Down
44 changes: 22 additions & 22 deletions example/app-template/app-template.cc
Expand Up @@ -23,7 +23,7 @@

/*
* Example application template to be used with the standalone iocore
*
*
*/

#include "inktomi++.h"
Expand Down Expand Up @@ -69,19 +69,19 @@ int tsapp_port = 12345;
AppVersionInfo appVersionInfo;

ArgumentDescription argument_descriptions[] = {
{"version", 'V', "Print Version Id", "T",
{"version", 'V', "Print Version Id", "T",
&version_flag, NULL, NULL},
{"tsapp_port", 'p', "tsapp port", "I",
{"tsapp_port", 'p', "tsapp port", "I",
&tsapp_port, "TSAPP_PORT", NULL},
{"net_threads", 'n', "Number of Net Threads", "I",
{"net_threads", 'n', "Number of Net Threads", "I",
&system_num_of_net_threads, "TSAPP_NET_THREADS", NULL},
{"accept_thread", 'a', "Use an Accept Thread", "T",
{"accept_thread", 'a', "Use an Accept Thread", "T",
&use_accept_thread, "TSAPP_ACCEPT_THREAD", NULL},
{"poll_timeout", 't', "poll timeout in milliseconds", "I",
{"poll_timeout", 't', "poll timeout in milliseconds", "I",
&net_config_poll_timeout, NULL, NULL},
{"debug_tags", 'T', "Debug Tags ('|' separated)", "S1023",
{"debug_tags", 'T', "Debug Tags ('|' separated)", "S1023",
debug_tags, "TSAPP_DEBUG_TAGS", NULL},
{"action_tags", 'T', "Action Tags ('|' separated)", "S1023",
{"action_tags", 'T', "Action Tags ('|' separated)", "S1023",
action_tags, "TSAPP_ACTION_TAGS", NULL},
{"help", 'h', "Help", NULL, NULL, NULL, usage}
};
Expand All @@ -95,7 +95,7 @@ void init_app_config() {
"proxy.config.net.max_poll_delay",
128,
RECU_DYNAMIC, RECC_NULL, NULL);

RecRegisterConfigInt(
RECT_CONFIG,
"proxy.config.net.listen_backlog",
Expand All @@ -106,20 +106,20 @@ void init_app_config() {
RECT_CONFIG,
"proxy.config.net.connections_throttle",
8000,
RECU_DYNAMIC, RECC_NULL, NULL);
RECU_DYNAMIC, RECC_NULL, NULL);

RecRegisterConfigInt(
RECT_CONFIG,
"proxy.config.accept_threads",
0,
RECU_DYNAMIC, RECC_NULL, NULL);
RECU_DYNAMIC, RECC_NULL, NULL);

// IO
RecRegisterConfigInt(
RECT_CONFIG,
"proxy.config.io.max_buffer_size",
32768,
RECU_DYNAMIC, RECC_NULL, NULL);
RECU_DYNAMIC, RECC_NULL, NULL);

// Cache, etc
}
Expand Down Expand Up @@ -153,15 +153,15 @@ get_ts_directory(char *ts_path, size_t ts_path_len)
if (ts_path[len - 1] == '/') {
ts_path[len - 1] = '\0';
}

fclose(fp);
} else {
ink_strncpy(ts_path, PREFIX, ts_path_len);
}
}

if ((err = stat(ts_path, &s)) < 0) {
fprintf(stderr,"unable to stat() TS PATH '%s': %d %d, %s\n",
fprintf(stderr,"unable to stat() TS PATH '%s': %d %d, %s\n",
ts_path, err, errno, strerror(errno));
fprintf(stderr," Please set correct path in env variable TS_ROOT \n");
return -1;
Expand Down Expand Up @@ -200,7 +200,7 @@ int main(int argc, char * argv[])
{
char ts_path[PATH_NAME_MAX + 1];
// build the application information structure
appVersionInfo.setup(PACKAGE_NAME,PROGRAM_NAME, PACKAGE_VERSION, __DATE__,
appVersionInfo.setup(PACKAGE_NAME,PROGRAM_NAME, PACKAGE_VERSION, __DATE__,
__TIME__, BUILD_MACHINE, BUILD_PERSON, "");

process_args(argument_descriptions, n_argument_descriptions, argv);
Expand All @@ -217,7 +217,7 @@ int main(int argc, char * argv[])
ink_snprintf(system_config_directory, sizeof(system_config_directory), "%s/etc/trafficserver", system_root_dir);
ink_snprintf(system_local_state_dir, sizeof(system_local_state_dir), "%s/var/trafficserver", system_root_dir);
ink_snprintf(system_log_dir, sizeof(system_log_dir), "%s/var/log/trafficserver", system_root_dir);
}
}

if (system_root_dir[0] && (chdir(system_root_dir) < 0)) {
fprintf(stderr,"unable to change to root directory \"%s\" [%d '%s']\n", system_root_dir, errno, strerror(errno));
Expand All @@ -230,13 +230,13 @@ int main(int argc, char * argv[])
// Diags
init_system_diags(debug_tags, NULL);
if (is_debug_tag_set("tsapp"))
diags->dump(stdout);
diags->dump(stdout);

// Config & Stats
RecModeT mode_type = RECM_STAND_ALONE;
RecProcessInit(mode_type,diags);
//RecProcessInitMessage(mode_type);

signal(SIGPIPE, SIG_IGN); // ignore broken pipe

init_buffer_allocators();
Expand Down Expand Up @@ -266,11 +266,11 @@ int main(int argc, char * argv[])
// Start processors
eventProcessor.start(system_num_of_net_threads);

RecProcessStart();
RecProcessStart();

init_signals2();

netProcessor.start();
netProcessor.start();

dnsProcessor.start();

Expand All @@ -279,9 +279,9 @@ int main(int argc, char * argv[])

//clusterProcessor.init();

cacheProcessor.start();
cacheProcessor.start();

//udpNet.start(system_num_of_udp_threads); // XXX : broken
//udpNet.start(system_num_of_udp_threads); // XXX : broken

//sslNetProcessor.start(getNumSSLThreads());

Expand Down
10 changes: 5 additions & 5 deletions example/append-transform/append-transform.c
Expand Up @@ -24,15 +24,15 @@
/*
* append-transform.c: an example program that appends the text
* contained in a file to all HTTP/text response
* bodies.
*
* bodies.
*
*
* Usage:
*
* Usage:
* (NT): AppendTransform.dll <filename>
* (Solaris): append-transform.so <filename>
*
* <filename> is the name of the file containing the
*
* <filename> is the name of the file containing the
* text to be appended
*
*/
Expand Down
20 changes: 10 additions & 10 deletions example/basic-auth/basic-auth.c
Expand Up @@ -24,9 +24,9 @@
/* basic-auth.c: a plugin that performs basic HTTP proxy
* authentication
*
*
* Usage:
* (NT): BasicAuth.dll
*
* Usage:
* (NT): BasicAuth.dll
* (Solaris): basic-auth.so
*
*/
Expand Down Expand Up @@ -84,24 +84,24 @@ base64_decode(const char *input)
static int
authorized(char *user, char *password)
{
/*
* This routine checks the validity of the user name and
/*
* This routine checks the validity of the user name and
* password. Sample NT code is provided for illustration.
* For UNIX systems, enter your own authorization code
* here.
* here.
*/

#if !defined (_WIN32)

#else
// LogonUser() will work only if the account is set with
// LogonUser() will work only if the account is set with
// SE_TCB_NAME privilege. If SE_TCB_NAME is missing,
// Traffic server will attempt to add this privilege to
// the running account, but may fail depending on the access
// levels provided to the said account. In such a case, an
// NT systems administrator will have to set the privilege
// levels provided to the said account. In such a case, an
// NT systems administrator will have to set the privilege
// "Act as part of the operating system" from the NT user manager.
//
//
int nErr = 0;
HANDLE hToken = 0;
BOOL bRet = LogonUser(user, NULL, password, LOGON32_LOGON_NETWORK,
Expand Down
6 changes: 3 additions & 3 deletions example/blacklist-0/blacklist-0.c
Expand Up @@ -21,12 +21,12 @@
limitations under the License.
*/

/*
* blacklist-0.c:
/*
* blacklist-0.c:
* original version of blacklist-1, now used for internal testing
*
*
* Usage:
* Usage:
*
*/

Expand Down
18 changes: 9 additions & 9 deletions example/blacklist-1/blacklist-1.c
Expand Up @@ -21,16 +21,16 @@
limitations under the License.
*/

/* blacklist-1.c: an example program that denies client access
/* blacklist-1.c: an example program that denies client access
* to blacklisted sites. This plugin illustrates
* how to use configuration information from a
* how to use configuration information from a
* configuration file (blacklist.txt) that can be
* updated through the Traffic Manager UI.
*
*
* Usage:
* (NT) : BlackList.dll
* (Solaris) : blacklist-1.so
* Usage:
* (NT) : BlackList.dll
* (Solaris) : blacklist-1.so
*
*
*/
Expand Down Expand Up @@ -111,7 +111,7 @@ handle_dns(INKHttpTxn txnp, INKCont contp)
goto done;
}

/* We need to lock the sites_mutex as that is the mutex that is
/* We need to lock the sites_mutex as that is the mutex that is
protecting the global list of all blacklisted sites. */

ret_code = INKMutexLockTry(sites_mutex, &lock);
Expand Down Expand Up @@ -303,9 +303,9 @@ blacklist_plugin(INKCont contp, INKEvent event, void *edata)
break;
}
case INK_EVENT_TIMEOUT:
/* when mutex lock is not acquired and continuation is rescheduled,
the plugin is called back with INK_EVENT_TIMEOUT with a NULL
edata. We need to decide, in which function did the MutexLock
/* when mutex lock is not acquired and continuation is rescheduled,
the plugin is called back with INK_EVENT_TIMEOUT with a NULL
edata. We need to decide, in which function did the MutexLock
failed and call that function again */
if (contp != global_contp) {
cd = (cdata *) INKContDataGet(contp);
Expand Down
16 changes: 8 additions & 8 deletions example/bnull-transform/bnull-transform.c
Expand Up @@ -22,13 +22,13 @@
*/

/* bnull-transform.c: an example program that illustrates a buffered
* null transform.
*
* null transform.
*
*
* Usage:
* (NT): BNullTransform.dll
* (Solaris): bnull-transform.so
*
* Usage:
* (NT): BNullTransform.dll
* (Solaris): bnull-transform.so
*
*
*/
Expand Down Expand Up @@ -223,7 +223,7 @@ handle_transform(INKCont contp)
static int
bnull_transform(INKCont contp, INKEvent event, void *edata)
{
/* Check to see if the transformation has been closed by a
/* Check to see if the transformation has been closed by a
call to INKVConnClose. */

if (INKVConnClosedGet(contp)) {
Expand Down Expand Up @@ -256,8 +256,8 @@ bnull_transform(INKCont contp, INKEvent event, void *edata)

case INK_EVENT_VCONN_WRITE_READY:
default:
/* If we get a WRITE_READY event or any other type of event
(sent, perhaps, because we were reenabled) then we'll attempt
/* If we get a WRITE_READY event or any other type of event
(sent, perhaps, because we were reenabled) then we'll attempt
to transform more data. */
handle_transform(contp);
break;
Expand Down
8 changes: 4 additions & 4 deletions example/cache_scan/cache_scan.cc
Expand Up @@ -22,7 +22,7 @@
*/

/*
* cache_scan.cc: use INKCacheScan to print URLs and headers for objects in
* cache_scan.cc: use INKCacheScan to print URLs and headers for objects in
* the cache when endpoint /show-cache is requested
*/

Expand Down Expand Up @@ -218,8 +218,8 @@ cleanup(INKCont contp)
cache_scan_state *cstate = (cache_scan_state *) INKContDataGet(contp);

if (cstate) {
// cancel any pending cache scan actions, since we will be destroying the
// continuation
// cancel any pending cache scan actions, since we will be destroying the
// continuation
if (cstate->pending_action) {
INKActionCancel(cstate->pending_action);
}
Expand Down Expand Up @@ -311,7 +311,7 @@ handle_io(INKCont contp, INKEvent event, void *edata)
{
INKDebug("cache_iter", "ndone: %d total_bytes: %d", INKVIONDoneGet(cstate->write_vio), cstate->total_bytes);
cstate->write_pending = 0;
// the cache scan handler should call vio reenable when there is
// the cache scan handler should call vio reenable when there is
// available data
//INKVIOReenable(cstate->write_vio);
return 0;
Expand Down
6 changes: 3 additions & 3 deletions example/file-1/file-1.c
Expand Up @@ -21,11 +21,11 @@
limitations under the License.
*/

/* file-1.c: an example program that opens files and reads them
* into a buffer
/* file-1.c: an example program that opens files and reads them
* into a buffer
*
*
* Usage:
* Usage:
* (NT): File.dll <filename1> <filename2> ...
* (Solaris): file-1.so <filename1> <filename2> ...
*
Expand Down
2 changes: 1 addition & 1 deletion example/file_system_cache/DiskCache.cc
Expand Up @@ -498,7 +498,7 @@ DiskCache::setNumberDirectories(const uint32_t directories)

// set the number of directories to directory with to a power
// each power is another directory level and there is a maximum
// of 10 levels
// of 10 levels

if (directories < _directoryWidth) {
count = 1;
Expand Down
4 changes: 2 additions & 2 deletions example/gzip-transform/gzip.c
Expand Up @@ -169,8 +169,8 @@ gzip_transform_init(INKCont contp, GzipData * data)

data->state = 1;

/*
* Mark the output data as having gzip content encoding
/*
* Mark the output data as having gzip content encoding
*/
INKHttpTxnTransformRespGet(data->txn, &bufp, &hdr_loc);
ce_loc = INKMimeHdrFieldCreate(bufp, hdr_loc);
Expand Down

0 comments on commit 468058a

Please sign in to comment.