Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-01-24 00:28:30 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-24 03:05:34 +0400
commitfc6a9673c8ec6e22565bb5a837f33b845e5127ce (patch)
tree77454cf2b17bea4c6d59e96001904b7ac37b9dea /lib
parented111975a096cb44a7d737e46c6e0c73025e0670 (diff)
dgram: make setBroadcast() conform to v0.4 API
- don't return a value
Diffstat (limited to 'lib')
-rw-r--r--lib/dgram.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/dgram.js b/lib/dgram.js
index 4166b026e1b..2e8071ca121 100644
--- a/lib/dgram.js
+++ b/lib/dgram.js
@@ -223,11 +223,9 @@ Socket.prototype.address = function() {
Socket.prototype.setBroadcast = function(arg) {
- if (this._handle.setBroadcast((arg) ? 1 : 0) == -1) {
- throw errnoException(errno, 'setBroadcast');
+ if (this._handle.setBroadcast((arg) ? 1 : 0)) {
+ throw errnoException(errno, 'setBroadcast');
}
-
- return true;
};