lib util: Fix const warning
[ira/wip.git] / lib / util / genrand.c
index c51f9384b835c0a04793b2580d1f3f57c16a30ca..5b8456547ac9fc5ca1f8615a69297be96240f9c7 100644 (file)
@@ -294,7 +294,7 @@ _PUBLIC_ uint32_t generate_random(void)
 _PUBLIC_ bool check_password_quality(const char *s)
 {
        int has_digit=0, has_capital=0, has_lower=0, has_special=0, has_high=0;
-       char* reals = s;
+       const char* reals = s;
        while (*s) {
                if (isdigit((unsigned char)*s)) {
                        has_digit |= 1;