lineedit: do not hang on error, but return error indicator.
[oweals/busybox.git] / libbb / pw_encrypt_sha.c
index 3173506f5fea169cfa5cd5f250dd6e8fca31e9b3..070e0d442cd8c66a35b4508bf18547671eaa83f2 100644 (file)
@@ -20,7 +20,7 @@ sha_crypt(/*const*/ char *key_data, /*const*/ char *salt_data)
 {
        void (*sha_begin)(void *ctx) FAST_FUNC;
        void (*sha_hash)(const void *buffer, size_t len, void *ctx) FAST_FUNC;
-       void* (*sha_end)(void *resbuf, void *ctx) FAST_FUNC;
+       void (*sha_end)(void *resbuf, void *ctx) FAST_FUNC;
        int _32or64;
 
        char *result, *resptr;
@@ -210,7 +210,7 @@ do {                                                        \
                        b64_from_24bit(alt_result[i], alt_result[j], alt_result[k], 4);
                        if (k == 29)
                                break;
-                       i = k + 1; 
+                       i = k + 1;
                }
                b64_from_24bit(0, alt_result[31], alt_result[30], 3);
                /* was: