Current code generates warnings and, in some cases, doesn't compile.
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
.. code-block:: c
#include <stdio.h>
+ #include <stdlib.h>
#include <string.h>
#include <rados/librados.h>
- int main (int argc, char argv**)
+ int main (int argc, const char **argv)
{
/* Declare the cluster handle and required arguments. */
librados::Rados cluster;
char cluster_name[] = "ceph";
char user_name[] = "client.admin";
- uint64_t flags;
+ uint64_t flags = 0;
/* Initialize the cluster handle with the "ceph" cluster name and "client.admin" user */
{
.. code-block:: c
#include <stdio.h>
+ #include <stdlib.h>
#include <string.h>
#include <rados/librados.h>
- #include <stdlib.h>
int main (int argc, const char **argv)
{