Permalink
Browse files

Remove unnecessary type conversion

  • Loading branch information...
msantos committed Dec 7, 2010
1 parent 3e7e49c commit 97661e6c0edeaa6efb432244cb915bab697bd3d4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/npmd.erl
View
@@ -35,7 +35,7 @@
-export([kill/2, names/2, epmd/1, flood/2]).
kill(IP, Port) ->
- Packet = list_to_binary([<<107,"OK">>]),
+ Packet = <<107,"OK">>,
{ok, Socket} = gen_tcp:connect(IP, Port, [
{packet,2},
{active, true},
@@ -45,7 +45,7 @@ kill(IP, Port) ->
wait(Socket).
names(IP, Port) ->
- Packet = list_to_binary([<<110>>]),
+ Packet = <<110>>,
{ok, Socket} = gen_tcp:connect(IP, Port, [
{packet,2},
{active, true},

0 comments on commit 97661e6

Please sign in to comment.