aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-22 15:09:21 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-01-22 15:09:21 +0000
commitd341d9f3062c74d74c94ebe6359f067bed8311ba (patch)
treeadf26b01f756e3d97b3b72083506971c4312010b /crypto
parent8f506c709adb7d3bed4ebefefe9487c156192a64 (diff)
fpu: Replace uint8 typedef with uint8_t
Replace the uint8 softfloat-specific typedef with uint8_t. This change was made with find include hw fpu target-* -name '*.[ch]' | xargs sed -i -e 's/\buint8\b/uint8_t/g' together with manual removal of the typedef definition and manual fixing of more erroneous uses found via test compilation. It turns out that the only code using this type is an accidental use where uint8_t was intended anyway... Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Acked-by: Leon Alrae <leon.alrae@imgtec.com> Acked-by: James Hogan <james.hogan@imgtec.com> Message-id: 1452603315-27030-7-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'crypto')
-rw-r--r--crypto/secret.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/secret.c b/crypto/secret.c
index 9a9257a7f0..a799da1bdb 100644
--- a/crypto/secret.c
+++ b/crypto/secret.c
@@ -434,7 +434,7 @@ int qcrypto_secret_lookup(const char *secretid,
return -1;
}
- *data = g_new0(uint8, secret->rawlen + 1);
+ *data = g_new0(uint8_t, secret->rawlen + 1);
memcpy(*data, secret->rawdata, secret->rawlen);
(*data)[secret->rawlen] = '\0';
*datalen = secret->rawlen;