Skip to content

Commit

Permalink
Remove trailing dash
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Nov 2, 2010
1 parent 8fa9e86 commit daa2509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion seds/src/seds.erl
Expand Up @@ -44,7 +44,7 @@
-record(state, { -record(state, {
acf = false, % allow client forwarding acf = false, % allow client forwarding
acl = [], % forward IP blacklist acl = [], % forward IP blacklist
acl_port = [], % allowed ports (whitelist) acl_port = [], % allowed ports (whitelist)


f, % forwarders map f, % forwarders map
s, % socket s, % socket
Expand Down
3 changes: 1 addition & 2 deletions seds/src/seds_protocol.erl
Expand Up @@ -217,5 +217,4 @@ check_port(Port, Allowed) ->


% Remove the trailing dash and convert to an integer % Remove the trailing dash and convert to an integer
list_to_sum(N) when is_list(N) -> 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.