Changeset 24 for trunk/stoposclient.cpp
- Timestamp:
- 04/03/14 09:27:27 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/stoposclient.cpp
r22 r24 24 24 #include "shellenv.h" 25 25 #include "stopos.h" 26 #define CONNECT_ERROR_MSG "ERROR: Cannot connect to server"27 #define CONNECT_ERROR_RETRIES 1028 26 29 27 struct returnvalue … … 174 172 w.set_value(line); 175 173 176 for (int i=0; i< CONNECT_ERROR_RETRIES; i++)174 for (int i=0; i<connect_error_retries; i++) 177 175 { 178 176 rc = w.send_message(body,header); … … 182 180 if (rc != 0) 183 181 { 184 r.msg = CONNECT_ERROR_MSG;182 r.msg = connect_error_msg; 185 183 return 1; 186 184 } … … 428 426 std::string body,header; 429 427 430 for (int i=0; i< CONNECT_ERROR_RETRIES; i++)428 for (int i=0; i<connect_error_retries; i++) 431 429 { 432 430 rc = w.send_message(body,header); … … 435 433 } 436 434 if (rc != 0) 437 r.msg = CONNECT_ERROR_MSG;435 r.msg = connect_error_msg; 438 436 else 439 437 r.parse(body);
Note: See TracChangeset
for help on using the changeset viewer.