cleanup in cmake file (added libraries)
code reformats
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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!");
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user