clang-format

This commit is contained in:
Justin Boswell
2021-06-21 12:01:33 -07:00
parent ad550a42a8
commit 50446f2e7a
3 changed files with 22 additions and 22 deletions
+5 -5
View File
@@ -22,11 +22,11 @@ PHP_FUNCTION(aws_crt_md5_new) {
PHP_FUNCTION(aws_crt_hash_update) {
zend_ulong php_hash = 0;
const char * buffer = NULL;
const char *buffer = NULL;
size_t len = 0;
aws_php_parse_parameters("ls", &php_hash, &buffer, &len);
aws_crt_hash *hash = (void *) php_hash;
RETURN_LONG((zend_ulong) aws_crt_hash_update(hash, (uint8_t *)buffer, (uint32_t) len));
aws_crt_hash *hash = (void *)php_hash;
RETURN_LONG((zend_ulong)aws_crt_hash_update(hash, (uint8_t *)buffer, (uint32_t)len));
}
PHP_FUNCTION(aws_crt_hash_digest) {
@@ -34,7 +34,7 @@ PHP_FUNCTION(aws_crt_hash_digest) {
size_t truncate_to = 0;
size_t length = 0;
aws_php_parse_parameters("lll", &php_hash, &truncate_to, &length);
aws_crt_hash *hash = (void *) php_hash;
aws_crt_hash *hash = (void *)php_hash;
if (truncate_to != 0 && length > truncate_to) {
length = truncate_to;
}
@@ -49,6 +49,6 @@ PHP_FUNCTION(aws_crt_hash_digest) {
PHP_FUNCTION(aws_crt_hash_destroy) {
zend_ulong php_hash = 0;
aws_php_parse_parameters("l", &php_hash);
aws_crt_hash *hash = (void *) php_hash;
aws_crt_hash *hash = (void *)php_hash;
aws_crt_hash_destroy(hash);
}