Permalink
Browse files

Remove trailing dash

  • Loading branch information...
1 parent 8fa9e86 commit daa250953c9d3a15f39c4581ef3607b4913974a0 @msantos committed Nov 2, 2010
Showing with 2 additions and 3 deletions.
  1. +1 −1 seds/src/seds.erl
  2. +1 −2 seds/src/seds_protocol.erl
View
@@ -44,7 +44,7 @@
-record(state, {
acf = false, % allow client forwarding
acl = [], % forward IP blacklist
- acl_port = [], % allowed ports (whitelist)
+ acl_port = [], % allowed ports (whitelist)
f, % forwarders map
s, % socket
@@ -217,5 +217,4 @@ check_port(Port, Allowed) ->
% Remove the trailing dash and convert to an integer
list_to_sum(N) when is_list(N) ->
- list_to_integer(lists:reverse(tl(lists:reverse(N)))).
-
+ list_to_integer(string:strip(N, right, $-)).

0 comments on commit daa2509

Please sign in to comment.