修改回调函数参数,在close fd时flush掉缓存内容

This commit is contained in:
pengxuanzheng
2020-11-03 18:09:03 +08:00
parent 9ef02a67dd
commit 6259b938ec
5 changed files with 46 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ int file_to_buffer(const char *file, char *buffer, size_t *len)
return 0;
}
void callback(bool result, const char *error, void *userdata)
void callback(bool result, const char *error, const char *bucket, const char *object, void *userdata)
{
userdata_t *data = (userdata_t *)userdata;
clock_gettime(CLOCK_MONOTONIC, data->finished);