diff --git a/common.cpp b/common.cpp index c36293d..8e61cb8 100644 --- a/common.cpp +++ b/common.cpp @@ -895,8 +895,8 @@ int new_connected_socket2(int &fd, address_t &addr, address_t *bind_addr, char * u32_t djb2(unsigned char *str, int len) { u32_t hash = 5381; int c; - int i = 0; - while (c = *str++, i++ != len) { + for (int i=0; i string_to_vec(const char *s, const char *sp) { vector res; string str = s;