Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix line endings and trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Nov 4, 2011
1 parent 358f0ce commit 189dd8f
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion lib/child_process.js
Expand Up @@ -116,7 +116,7 @@ function setupChannel(target, channel) {

// For overflow protection don't write if channel queue is too deep.
if (channel.writeQueueSize > 1024 * 1024) {
return false;
return false;
}

var buffer = Buffer(JSON.stringify(message) + '\n');
Expand Down
4 changes: 2 additions & 2 deletions lib/cluster.js
Expand Up @@ -56,7 +56,7 @@ exports.isMaster = ! exports.isWorker;
// Specifies the script to execute for the child processes. Default is
// process.argv[1]
//
// options.args
// options.args
// Specifies program arguments for the workers. The Default is
// process.argv.slice(2)
//
Expand Down Expand Up @@ -109,7 +109,7 @@ function handleWorkerMessage(worker, message) {
debug("recv " + JSON.stringify(message));

switch (message.cmd) {
case 'online':
case 'online':
console.log("Worker " + worker.pid + " online");
workers[message._workerId] = worker;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/fs_event_wrap.cc
Expand Up @@ -111,7 +111,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
if (!args[1]->IsTrue()) {
uv_unref(uv_default_loop());
}
} else {
} else {
SetErrno(uv_last_error(uv_default_loop()));
}

Expand Down
2 changes: 1 addition & 1 deletion src/node_buffer.h
Expand Up @@ -50,7 +50,7 @@ namespace node {
Migrating code C++ Buffer code from v0.2 to v0.3 is difficult. Here are
some tips:
- buffer->data() calls should become Buffer::Data(buffer) calls.
- buffer->length() calls should become Buffer::Length(buffer) calls.
- buffer->length() calls should become Buffer::Length(buffer) calls.
- There should not be any ObjectWrap::Unwrap<Buffer>() calls. You should
not be storing pointers to Buffer objects at all - as they are
now considered internal structures. Instead consider making a
Expand Down
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Expand Up @@ -780,7 +780,7 @@ int Connection::SelectNextProtoCallback_(SSL *s,
}

return SSL_TLSEXT_ERR_OK;
}
}
#endif

#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
Expand Down
2 changes: 1 addition & 1 deletion src/node_crypto.h
Expand Up @@ -193,7 +193,7 @@ class Connection : ObjectWrap {
BIO *bio_read_;
BIO *bio_write_;
SSL *ssl_;

bool is_server_; /* coverity[member_decl] */
};

Expand Down
2 changes: 1 addition & 1 deletion src/node_extensions.cc
Expand Up @@ -56,7 +56,7 @@ node_module_struct* get_builtin_module(const char *name)
char buf[128];
node_module_struct *cur = NULL;
snprintf(buf, sizeof(buf), "node_%s", name);
/* TODO: you could look these up in a hash, but there are only
/* TODO: you could look these up in a hash, but there are only
* a few, and once loaded they are cached. */
for (int i = 0; node_module_list[i] != NULL; i++) {
cur = node_module_list[i];
Expand Down
58 changes: 29 additions & 29 deletions src/platform_win32.h
@@ -1,24 +1,24 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

#ifndef NODE_PLATFORM_WIN32_H_
#define NODE_PLATFORM_WIN32_H_

Expand Down Expand Up @@ -56,15 +56,15 @@
# define NOMCX
#endif

#include <windows.h>
#include <winsock2.h>
#include <windows.h>
#include <winsock2.h>

#if defined(_MSC_VER)
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#endif

#if defined(_MSC_VER)
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#endif

namespace node {

#define NO_IMPL_MSG(...) \
Expand Down
2 changes: 1 addition & 1 deletion src/tcp_wrap.cc
Expand Up @@ -422,7 +422,7 @@ Handle<Value> TCPWrap::Connect(const Arguments& args) {
// I'm too lazy to come up with the perfect class hierarchy here. Let's
// just do some type munging.
ConnectWrap* req_wrap = new ConnectWrap();

int r = uv_tcp_connect(&req_wrap->req_, &wrap->handle_, address,
AfterConnect);

Expand Down
2 changes: 1 addition & 1 deletion src/tty_wrap.cc
Expand Up @@ -116,7 +116,7 @@ class TTYWrap : StreamWrap {

static Handle<Value> GetWindowSize(const Arguments& args) {
HandleScope scope;

UNWRAP

int width, height;
Expand Down

0 comments on commit 189dd8f

Please sign in to comment.