mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
crypto: move 'opaque' parameter to (nearly) the end of parameter list
Previous commit moved 'opaque' to be the 2nd parameter in the list:
commit 375092332e
Author: Fam Zheng <famz@redhat.com>
Date: Fri Apr 21 20:27:02 2017 +0800
crypto: Make errp the last parameter of functions
Move opaque to 2nd instead of the 2nd to last, so that compilers help
check with the conversion.
this puts it back to the 2nd to last position.
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
899833cd65
commit
e4a3507e86
4 changed files with 17 additions and 14 deletions
|
@ -187,10 +187,10 @@ static struct QCryptoBlockTestData {
|
|||
|
||||
|
||||
static ssize_t test_block_read_func(QCryptoBlock *block,
|
||||
void *opaque,
|
||||
size_t offset,
|
||||
uint8_t *buf,
|
||||
size_t buflen,
|
||||
void *opaque,
|
||||
Error **errp)
|
||||
{
|
||||
Buffer *header = opaque;
|
||||
|
@ -204,8 +204,8 @@ static ssize_t test_block_read_func(QCryptoBlock *block,
|
|||
|
||||
|
||||
static ssize_t test_block_init_func(QCryptoBlock *block,
|
||||
void *opaque,
|
||||
size_t headerlen,
|
||||
void *opaque,
|
||||
Error **errp)
|
||||
{
|
||||
Buffer *header = opaque;
|
||||
|
@ -219,10 +219,10 @@ static ssize_t test_block_init_func(QCryptoBlock *block,
|
|||
|
||||
|
||||
static ssize_t test_block_write_func(QCryptoBlock *block,
|
||||
void *opaque,
|
||||
size_t offset,
|
||||
const uint8_t *buf,
|
||||
size_t buflen,
|
||||
void *opaque,
|
||||
Error **errp)
|
||||
{
|
||||
Buffer *header = opaque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue