diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-20 06:42:18 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-20 16:29:56 -0400 |
commit | 5d1bce667f97244718bbeaff42bade637782c6ba (patch) | |
tree | a5d5d2915127bf173a03c5ac34b5bdce930a89f4 /util.c | |
parent | de62d93767d02a6c4768936670b668eca5f3fafe (diff) |
whitespace fixes
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -92,12 +92,12 @@ int parse_local_port_forward(char *string, int *local_port, char **hostname, int | |||
92 | 92 | ||
93 | /* First replace all @ with :, ':' is forbidden in some environments */ | 93 | /* First replace all @ with :, ':' is forbidden in some environments */ |
94 | char *p = string; | 94 | char *p = string; |
95 | while(*p) | 95 | while(*p) |
96 | { | 96 | { |
97 | if(*p == '@') *p = ':'; | 97 | if(*p == '@') *p = ':'; |
98 | p++; | 98 | p++; |
99 | } | 99 | } |
100 | 100 | ||
101 | lport = strtok(string, ":"); | 101 | lport = strtok(string, ":"); |
102 | host = strtok(NULL, ":"); | 102 | host = strtok(NULL, ":"); |
103 | rport = strtok(NULL, ":"); | 103 | rport = strtok(NULL, ":"); |
@@ -123,12 +123,12 @@ int parse_pipe_port_forward(char *string, char **hostname, int *remote_port) | |||
123 | 123 | ||
124 | /* First replace all @ with :, ':' is forbidden in some environments */ | 124 | /* First replace all @ with :, ':' is forbidden in some environments */ |
125 | char *p = string; | 125 | char *p = string; |
126 | while(*p) | 126 | while(*p) |
127 | { | 127 | { |
128 | if(*p == '@') *p = ':'; | 128 | if(*p == '@') *p = ':'; |
129 | p++; | 129 | p++; |
130 | } | 130 | } |
131 | 131 | ||
132 | host = strtok(string, ":"); | 132 | host = strtok(string, ":"); |
133 | rport = strtok(NULL, ":"); | 133 | rport = strtok(NULL, ":"); |
134 | 134 | ||