diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-05-15 18:16:12 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-05-15 18:16:12 +0200 |
commit | 2f602bce782be221a729a74df1258fdf896e633b (patch) | |
tree | 5af6c5d2544bc070975479fe926807df5c7634be | |
parent | 1776f1fb548026d70f2354002cb5316844b69879 (diff) | |
download | ceph-libs3-2f602bce782be221a729a74df1258fdf896e633b.tar.gz |
Fix some non-ANSI function declarationwip-da-SCA
Add void in case no function parameters are declared.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/general.c | 2 | ||||
-rw-r--r-- | src/request.c | 2 | ||||
-rw-r--r-- | src/s3.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/general.c b/src/general.c index fb30c37..867ae5d 100644 --- a/src/general.c +++ b/src/general.c @@ -43,7 +43,7 @@ S3Status S3_initialize(const char *userAgentInfo, int flags, } -void S3_deinitialize() +void S3_deinitialize(void) { if (--initializeCountG) { return; diff --git a/src/request.c b/src/request.c index b267a5e..53bda41 100644 --- a/src/request.c +++ b/src/request.c @@ -1109,7 +1109,7 @@ S3Status request_api_initialize(const char *userAgentInfo, int flags, } -void request_api_deinitialize() +void request_api_deinitialize(void) { pthread_mutex_destroy(&requestStackMutexG); @@ -141,7 +141,7 @@ static char putenvBufG[256]; // util ---------------------------------------------------------------------- -static void S3_init() +static void S3_init(void) { S3Status status; const char *hostname = getenv("S3_HOSTNAME"); @@ -155,7 +155,7 @@ static void S3_init() } -static void printError() +static void printError(void) { if (statusG < S3StatusErrorAccessDenied) { fprintf(stderr, "\nERROR: %s\n", S3_get_status_name(statusG)); @@ -675,7 +675,7 @@ static int convert_simple_acl(char *aclXml, char *ownerId, return 1; } -static int should_retry() +static int should_retry(void) { if (retriesG--) { // Sleep before next retry; start out with a 1 second sleep |