Commit a6c7eb79 authored by jan.koester's avatar jan.koester
Browse files

now clean

parent 7f88b0ec
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -84,8 +84,6 @@ bool blogi::Auth::locallogin(const int tid,const char* username, const char* pas
#ifdef LDAPSUPPORT
bool blogi::Auth::ldapLogin(const int tid,const char *username,const char *password,const char *ssid){
    libhttppp::HTTPException excep;
    timeval ltimeout;
    ltimeout.tv_sec = 5;

    LDAP* userldap;
    LDAPControl* userserverctls = nullptr;
@@ -147,7 +145,6 @@ bool blogi::Auth::ldapLogin(const int tid,const char *username,const char *passw
    BerElement* ber;
    char* dn;
    char* attribute;
    bool auth = false;

    for (entry = ldap_first_entry(userldap, answer);
         entry != NULL; entry = ldap_next_entry(userldap, entry)) {
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@

blogi::Config::Config(const char *path) : confplus::Config(path){
    if(getKey("/BLOGI/PLUGINDIR")){
        for(int i =0; i<getElements(getKey("/BLOGI/PLUGINDIR")); ++i){
        for(size_t i =0; i<getElements(getKey("/BLOGI/PLUGINDIR")); ++i){
             _PlgDir.push_back(getValue(getKey("/BLOGI/PLUGINDIR"),i));
        }
    }
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ void blogi::Editor::addIcon(const unsigned char* icon, size_t iconsize,const cha
    }
    _lastIcon->_Icon.resize(iconsize);

    for(int i=0; i<iconsize; ++i){
    for(size_t i=0; i<iconsize; ++i){
        _lastIcon->_Icon.push_back(icon[i]);
    }