cleanup in cmake file (added libraries)

code reformats
This commit is contained in:
2019-08-01 20:18:39 +02:00
parent c5b5029cb1
commit 904cd2e96a
4 changed files with 23 additions and 15 deletions

View File

@ -26,7 +26,7 @@ API::request(std::string myurl, bool post, Hashmap<std::string, std::string> &ma
struct curl_slist *list = nullptr;
for (int j = 0; j < headers.size(); ++j) {
list = curl_slist_append(list, headers.at((unsigned long)(j)).c_str());
list = curl_slist_append(list, headers.at((unsigned long) (j)).c_str());
}
std::string readString;

View File

@ -43,7 +43,7 @@ valuetype Hashmap<keytype, valuetype>::getValue(int position) {
template<class keytype, class valuetype>
int Hashmap<keytype, valuetype>::size() {
return (int)(keys.size());
return (int) (keys.size());
}

View File

@ -43,10 +43,10 @@ int main(int argc, char *argv[]) {
DynuAPI dynu;
if(dynu.refreshIp(ip)){
if (dynu.refreshIp(ip)) {
TelegramAPI tele;
tele.sendMessage(oldip + " moved to " + ip);
} else{
} else {
//error
logger.logToLogfile(" [ERROR] failed to write ip to dynu api!");
}