summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-20 06:42:18 -0400
committerAndrew Cady <d@jerkface.net>2020-08-20 16:29:56 -0400
commit5d1bce667f97244718bbeaff42bade637782c6ba (patch)
treea5d5d2915127bf173a03c5ac34b5bdce930a89f4 /util.c
parentde62d93767d02a6c4768936670b668eca5f3fafe (diff)
whitespace fixes
Diffstat (limited to 'util.c')
-rw-r--r--util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.c b/util.c
index 3e6a99c..01fbe65 100644
--- a/util.c
+++ b/util.c
@@ -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