Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 29, 2023
1 parent 8c48af6 commit 8d59549
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
10 changes: 5 additions & 5 deletions include/aws/s3/private/s3_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
#else
# define ASSERT_SYNCED_DATA_LOCK_HELD(object)
#endif
#define KB_TO_BYTES(kb) ((kb) * 1024)
#define MB_TO_BYTES(mb) ((mb) * 1024 * 1024)
#define GB_TO_BYTES(gb) ((gb) * 1024 * 1024 * 1024ULL)
#define KB_TO_BYTES(kb) ((kb)*1024)
#define MB_TO_BYTES(mb) ((mb)*1024 * 1024)
#define GB_TO_BYTES(gb) ((gb)*1024 * 1024 * 1024ULL)

#define MS_TO_NS(ms) ((uint64_t)(ms) * 1000000)
#define SEC_TO_NS(ms) ((uint64_t)(ms) * 1000000000)
#define MS_TO_NS(ms) ((uint64_t)(ms)*1000000)
#define SEC_TO_NS(ms) ((uint64_t)(ms)*1000000000)

struct aws_allocator;
struct aws_http_stream;
Expand Down
12 changes: 6 additions & 6 deletions include/aws/s3/s3_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ typedef int(aws_s3_meta_request_upload_review_fn)(
*
* @return The aws_s3express_credentials_provider.
*/
typedef struct aws_s3express_credentials_provider *(
aws_s3express_provider_factory_fn)(struct aws_allocator *allocator,
struct aws_s3_client *client,
aws_simple_completion_callback on_provider_shutdown_callback,
void *shutdown_user_data,
void *factory_user_data);
typedef struct aws_s3express_credentials_provider *(aws_s3express_provider_factory_fn)(
struct aws_allocator *allocator,
struct aws_s3_client *client,
aws_simple_completion_callback on_provider_shutdown_callback,
void *shutdown_user_data,
void *factory_user_data);

/* Keepalive properties are TCP only.
* If interval or timeout are zero, then default values are used.
Expand Down
4 changes: 1 addition & 3 deletions tests/s3_tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ int aws_s3_tester_init(struct aws_allocator *allocator, struct aws_s3_tester *te
&tester->default_signing_config, g_test_s3_region, tester->credentials_provider);
}
#else
{
tester->default_signing_config = tester->anonymous_signing_config;
}
{ tester->default_signing_config = tester->anonymous_signing_config; }
#endif

return AWS_OP_SUCCESS;
Expand Down

0 comments on commit 8d59549

Please sign in to comment.