]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/radosgw/s3/cpp.rst: update usage of libs3 APIs to make the examples work 10851/head
authorzhangweibing <zhangweibing@unitedstack.com>
Thu, 25 Aug 2016 03:14:38 +0000 (11:14 +0800)
committerzhangweibing <zhangweibing@unitedstack.com>
Thu, 25 Aug 2016 03:14:38 +0000 (11:14 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
doc/radosgw/s3/cpp.rst

index ef555a765cdc41e408ae0a673a611b2b4e47ece7..3451aeb709c7231085ae80201678cc962c67ab26 100644 (file)
@@ -105,7 +105,7 @@ for each bucket.
                &listServiceCallback
        };
        bool header_printed = false;
-       S3_list_service(S3ProtocolHTTP, access_key, secret_key, host, 0, &listServiceHandler, &header_printed);
+       S3_list_service(S3ProtocolHTTP, access_key, secret_key, host, 0, NULL, &listServiceHandler, &header_printed);
 
 
 Creating a Bucket
@@ -115,7 +115,7 @@ This creates a new bucket.
 
 .. code-block:: cpp
 
-       S3_create_bucket(S3ProtocolHTTP, access_key, secret_key, host, sample_bucket, S3CannedAclPrivate, NULL, NULL, &responseHandler, NULL);
+       S3_create_bucket(S3ProtocolHTTP, access_key, secret_key, NULL, host, sample_bucket, S3CannedAclPrivate, NULL, NULL, &responseHandler, NULL);
 
 
 Listing a Bucket's Content