diff options
Diffstat (limited to 'src/s3.c')
-rw-r--r-- | src/s3.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)); @@ -376,7 +376,7 @@ static int growbuffer_append(growbuffer **gb, const char *data, int dataLen) } buf->size = 0; buf->start = 0; - if (*gb) { + if (*gb && (*gb)->prev) { buf->prev = (*gb)->prev; buf->next = *gb; (*gb)->prev->next = buf; @@ -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 |